AUBase initializing stream formats
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.