Implementing AudioChannelLayout property
Implementing AudioChannelLayout property
- Subject: Implementing AudioChannelLayout property
- From: Pavol Markovic <email@hidden>
- Date: Mon, 17 Oct 2005 07:51:33 +0200
Hello,
I'd like to add AudioChannelLayout support in our AU instrument. It
supports 5.1 which is corresponding to
kAudioChannelLayoutTag_AudioUnit_5_1.
I went though framework headers and AUBase source code and I'd like to
verify my step.
First as channel layout is per element, one has to subclass
AUOutputElement with own class implementing:
GetChannelLayoutTags
GetAudioChannelLayout
SetAudioChannelLayout (this one is questionable if propery is readonly).
also override AUBase's CreateElement() method and return subclassed
elements here.
Are these steps correct?
I have one more question: because layout tags are related to number of
channels, is audiounit's responsibility to change layout tag everytime
the number of channels is changed? (To override element's
SetStreamFormat and check for channel count in description - and set
kAudioChannelLayoutTag_Stereo for 2 channels and
kAudioChannelLayoutTag_AudioUnit_5_1 for 6 channels?)
Also I don't see 5.1 (also 6.1 and 7.1) tag checking included in auval.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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