• 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
AUBase initializing stream formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AUBase initializing stream formats


  • Subject: AUBase initializing stream formats
  • From: Marc Poirier <email@hidden>
  • Date: Fri, 15 Aug 2003 16:45:33 -0500 (CDT)

I was thinking, maybe AUBase::CreateElements could do a little more work
and make sure to initialize the stream format of AUIOElements with
supported stream formats? As it is now, they created stereo, so when you
make an AU that does not support stereo input or output, you need to make
sure to change the stream format of the element(s) yourself, otherwise
you'll be starting off in a state with an unsupported stream format, and
you'll fail AUValidation and all that. So I was thinking that
CreateElement could, after doing what it already does, check
SupportedNumChannels, and if that returned null, then just leave things
be, and otherwise, set the i/o stream formats to whatever the first num
channels pair in the list is. Does that seem like a reasonable addition
to AUBase? As it is now, it just seems to me like it's really easy to
forget to add this to your AU creation code (I've forgotten a few times
now myself), and then you have a broken AU.

Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: New AudioFile/AudioConverter section in the CoreAudio Swiki
  • Next by Date: Trying to understand basics of CoreMidi -1
  • Previous by thread: New AudioFile/AudioConverter section in the CoreAudio Swiki
  • Next by thread: Trying to understand basics of CoreMidi -1
  • Index(es):
    • Date
    • Thread