I've just rediscovered this pieces of code in AU v2 SDK / AUBase.h that has 
been discussed
few times in past but never got actually explained.

When working with stream format / sample rate, this code is mapping global 
scope elements
into output scope element 0:

> //#warning "aliasing of global scope format should be pushed to subclasses"
>       case kAudioUnitScope_Global:
>               return StreamFormatWritable(kAudioUnitScope_Output, 0);
...
>       case kAudioUnitScope_Global:    // global stream description is an 
> alias for that of output 0
>               element = Outputs().SafeGetIOElement(0);

Both kAudioUnitProperty_SampleRate / kAudioUnitProperty_StreamFormat specify 
their scopes
to Input / Output. Why was it necessary to have such alias?
Obviously it was not working well with multiple buses.

PM

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to