Question about AudioUnits, Cocoa views, and getting info at init time
Question about AudioUnits, Cocoa views, and getting info at init time
- Subject: Question about AudioUnits, Cocoa views, and getting info at init time
- From: Walt <email@hidden>
- Date: Mon, 28 Sep 2009 19:28:01 -0600
I'm having a problem with determining an audiounit's channel count from its GUI at init time.
Specifically, the plug-in supports a number of different channel counts (stereo + surround), but needs to do different things depending on how it is instantiated - including build a different gui. The stereo case looks different than the 5.1 case, as does the 6.1, etc.
Everything I've tried* tells me input and output channel counts are 0. This tells me I'm not looking in the right place.
Any ideas?
Thanks,
Walt ---- I've tried calling AudioUnitGetProperty(...kAudioUnitProperty_StreamFormat...) - it returns a structure which suggests 0 input channels and 0 output channels
I've tried adding a property to the plug-in which calls through to AUEffectBase::GetNumberOfChannels(), again returning 0 output channels. I tried the same on the input side (GetInput(0)->GetStreamFormat().mChannelsPerFrame) and this once again yielded 0.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden