• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Implementing AudioChannelLayout property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Implementing AudioChannelLayout property
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Format Converters
  • Next by Date: Re: Starting with coreaudio API (beginner)
  • Previous by thread: Re: Starting with coreaudio API (beginner)
  • Next by thread: Re: Implementing AudioChannelLayout property
  • Index(es):
    • Date
    • Thread