Re: Detecting and hosting audio units with complex bus/channel layouts [solved]
Re: Detecting and hosting audio units with complex bus/channel layouts [solved]
- Subject: Re: Detecting and hosting audio units with complex bus/channel layouts [solved]
- From: Per Bull Holmen <email@hidden>
- Date: Mon, 20 Feb 2012 02:49:53 +0100
Den 17:16 19. februar 2012 skrev Per Bull Holmen <email@hidden> følgende:
> * This one is worse. The AU has one output element after creation, but
> this can be changed by the host. It supports up to 24 channels, but is
> this PER ELEMENT? All other AUs report number of channels per
> bus/element, but the options that appear in Logic (posted above) is
> more consistent with up to 24 channels ALTOGETHER.
I see now, that I should have read the header file, as well as the
documentation on the web. On the web it is not explained properly, but
in the header file explaining the property
kAudioUnitProperty_SupportedNumChannels, it says,
quote:
A negative number less than -2 is used to indicate a total number of
channels across every bus on that scope, regardless of how many
channels are set on any particular bus.
On the web it says, quote:
A negative value for a field in an AUChannelInfo structure indicates
that an input/output bus supports a variable number of channels, as
follows:
{–1, –1} indicates that a bus supports any number of input or output
channels provided that the input and output channel counts match each
other. This is the default configuration for effect units.
{–1, –2} or {–2, –1} indicates that a bus supports any number of input
and output channels; the channel counts on input and output can differ
from each other.
{–1, –3} indicates that a bus supports any number of input channels
and up to three output channels.
https://developer.apple.com/library/mac/#documentation/AudioUnit/Reference/AudioUnitPropertiesReference/Reference/reference.html
Clearly the header file is right. So, this answers my question.
Per
_______________________________________________
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