History question: Aliasing of global scope format
History question: Aliasing of global scope format
- Subject: History question: Aliasing of global scope format
- From: Pavol Markovic via Coreaudio-api <email@hidden>
- Date: Tue, 3 Dec 2019 02:27:45 +1300
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden