Re: Overriding SupportedNumChannels
Re: Overriding SupportedNumChannels
- Subject: Re: Overriding SupportedNumChannels
- From: William Stewart <email@hidden>
- Date: Fri, 2 Jul 2010 18:07:07 -0700
I think another source of confusion here is that AU Lab cache's information about an audio units channel capabilities.
If you start your AU as say, just having [2, 2]. Then run AULab, it will cache your AU's capabilities as only being able to do [2,2]
Now, if you then add [1,2] to your AU, and you don't clear AULab's cache, (or you don't update the version number of your audio unit), then AULab will NOT refresh its idea of what your AU can do.
So, (having just stumbled this way myself!), what you should do is in AULab's debug menu, "Clear AU Cache", quit and relaunch. Then your AU should show up as being capable of doing [1,2]
If you still have problems with this, let me know (but I just tried this on the shipping version of AULab on SnowLeopard with an AU that just does [1,2] and it worked fine for me)
Bill
On Jul 2, 2010, at 4:58 PM, email@hidden wrote:
> AU Lab does not (and never has) require the same number of input channels
> and output channels. But it will only display a list of appropriate
> effects for the type of track that you are on. Ie, if you have a 2 channel
> input track and a two channel output track, only effects that support 2->2
> will be displayed.
>
> If your effect supports 1->2, you need to use a mono input track and a
> stereo output track. Then your effect will show up in the mono->stereo
> list.
>
> For you, your effect is 1->8, so you need to create a multichannel output
> (use the octagonal setting to get 8 channels), and a mono input. Your
> panner unit will be listed under "Mono->8 Channel Panners"
>
> Hope this helps!
>
> Michael
>
> On Tue, June 29, 2010 1:55 pm, Alex Weiss wrote:
>> Hey,
>>
>> I think I found the culprit. First of all, it seems that AULab expects
>> the same number of input and output channels. In my case, I need an
>> 8-channel output and thus also need to declare 8 inputs.
>> AUPannerBase::GetChannelLayoutTags, however, only declares three
>> possible input tags: mono, stereo, and B-format. Overriding
>> GetChannelLayoutTags and adding kAudioChannelLayoutTag_AudioUnit_8
>> seems to do it.
>>
>> It's still rather annoying that AULab expects the same number of input
>> and output channels. Is there no way to simulate an 1 --> 8 channel
>> situation?
>>
>> Alex
>>
>>
>>
>> On Tue, Jun 29, 2010 at 7:06 PM, tahome izwah <email@hidden>
>> wrote:
>>> I'm afraid I don't know why it does this, I just noticed that a {1,2}
>>> config works if you offer a {2,2} config as well.
>>>
>>> Bill, any idea why this is the way it is?
>>> --th
>>>
>>>
>>> 2010/6/29 Alex Weiss <email@hidden>:
>>>> Hey Tahome,
>>>> thanks for your reply. The {2, 2}/{1, 2} combination does indeed work.
>>>> But if my plug-in is supposed to have a {1, 8} configuration? I tried
>>>> to add several second configurations to make AULab happy, but try as I
>>>> might, I can't get it to run. I always get the same error.
>>>> Interestingly enough, if I use a combination of {1,8} and {8, 8}, the
>>>> AULab at least displays the AU on the list of possible 8-channel
>>>> plug-ins. If I use {1,8} and {2, 8} instead, it doesn't even show up.
>>>>
>>>> Alex
>>>>
>>>>
>>>>> I think that's a long standing bug in AULab - if you add the {2, 2}
>>>>> configuration then {1, 2} works as well (IIRC, it's been a while).
>>>>>
>>>>> --th
>>>>
>>> _______________________________________________
>>> 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
>>>
>> _______________________________________________
>> 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
>>
>
>
> _______________________________________________
> 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
_______________________________________________
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