Re: Question about AudioUnits, Cocoa views, and getting info at init time
Re: Question about AudioUnits, Cocoa views, and getting info at init time
- Subject: Re: Question about AudioUnits, Cocoa views, and getting info at init time
- From: tahome izwah <email@hidden>
- Date: Tue, 29 Sep 2009 07:58:46 +0200
Are you trying to determine the number of channels that the AU
supports from within a host app, or are you looking for the actual
number of channels that the AU is instantiated with by the host?
For a host app I think the proper call to use on that AudioUnit is
SupportedNumChannels(). It will tell you what channel configs are
supported by the AU.
HTH
--th
2009/9/29 Walt <email@hidden>:
> 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