mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-09 05:27:57 +00:00
Initial working AudioUnit integration
This commit is contained in:
@@ -128,6 +128,16 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSIndexSet *)browser:(NSBrowser *)browser selectionIndexesForProposedSelection:(NSIndexSet *)proposedSelectionIndexes inColumn:(NSInteger)column
|
||||
{
|
||||
if (column == 2)
|
||||
{
|
||||
AudioGroupToken* token = [browser itemAtRow:proposedSelectionIndexes.firstIndex inColumn:column];
|
||||
[m_audioUnit requestAudioGroup:token];
|
||||
}
|
||||
return proposedSelectionIndexes;
|
||||
}
|
||||
|
||||
- (id)initWithAudioUnit:(AmuseAudioUnit*)au
|
||||
{
|
||||
self = [super init];
|
||||
@@ -152,6 +162,7 @@
|
||||
dispatch_sync(dispatch_get_main_queue(), ^
|
||||
{
|
||||
m_groupBrowser.delegate = m_groupBrowserDelegate;
|
||||
[m_groupBrowser loadColumnZero];
|
||||
});
|
||||
return m_audioUnit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user