Re: Multiple AU outputs in AULab
Re: Multiple AU outputs in AULab
- Subject: Re: Multiple AU outputs in AULab
- From: Stephen Blinkhorn <email@hidden>
- Date: Wed, 22 Apr 2009 12:18:34 -0600
On 21 Apr 2009, at 20:34, William Stewart wrote:
the error is PropertyNotWritable - it is likely to be coming from
your audio unit - I think from trying to set the stream format...
umm, does your audio unit pass the auval test?
Actually from what I can tell auval performs all render tests with
stereo channels. Prior to that it attempts to change the format of
all output elements to an unsupported number of channels and my AU
correctly returns FormatNotSupported.
But, auval doesn't try to set any output other that the first to 1
channel format which for whatever reason is the only output that is
fine with 1 channel format. If auval tried to set output elements 1,2
and 3 to mono channel format then maybe it would fail like AULab does?
Sorry for this wordy explanation.
Stephen
Yep, but as a quick test I changed the AUIOElement constructor so it
calls mStreamFormat.SetCanonical(1, false), mono channels, de-
interleaved, to see if that changed anything.
Same thing happened in AULab. I can change the first output to 2
channel format but changing any of the other outputs results in the
PropertyNotWritable error.
Logic worked fine so maybe Logic isn't checking properties here, or
AULab is finding something wrong that isn't and maybe I should be
doing more than just setting the bus count on the output scope?
Thanks again,
Stephen
also, just for grins, make sure that you are always setting the de-
interleaved flag on the ASBD's mFormatFlags field even if you have
mono
(sorry, if I sound like I'm grasping at straws, but, well, I'm...) :)
You could also file a bug and attach the audio unit if you can, so
we can have a look at this (or we can communicate off-list to debug
this)
Bill
On Apr 21, 2009, at 4:48 PM, Stephen Blinkhorn wrote:
Hello,
I think I have a problem with multiple outputs in AULab. In
essence all I want to do is create a fixed number of outputs and
allow the user to set these outputs as mono or stereo. In AULab
when I add my instrument and then do 'show audio unit details' I
get four outputs and I can select either 1 or 2 channels for each
output. If I configure each output as stereo then all is fine.
If I set output 1 as mono and the rest as stereo then all is fine
too. Any other configuration (eg 1 stereo/3 mono) results in this
message:
"There was an error configuring the source for xxxxx: -10865"
and
"Error setting number of output channels (1): -10865" posted to
the console.
I am creating 4 output elements and I publish {{0, 2 },{0, 1}} as
my channel info via SupportedNumChannels() and I validate the
number of channels per output element at initialization (the
problem happens before I get here though). Logic8 lets me mix and
match stereo/mono outputs, auval seems OK and DigitalPerformer
appears fine with things so I'm not sure what is wrong. Anyone
else seeing this behaviour?
Maybe this is just a problem with AULab but naturally I'd rather
it all worked for convenience/testing at least.
Many thanks,
Stephen
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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