Re: Enable matrix mixer inputs without ramping
Re: Enable matrix mixer inputs without ramping
- Subject: Re: Enable matrix mixer inputs without ramping
- From: William Stewart <email@hidden>
- Date: Mon, 14 Dec 2009 20:13:53 -0800
On Dec 14, 2009, at 7:43 PM, email@hidden wrote:
bill,
to satisfy my curiosity :- why do you have to
"memset the buffer to zero"
if setting the ioSilence flag - "the mixers look at this flag and
will not mix in audio that is silent."
if the mixers wont mix the buffer anyway as it is silent? double
redundancy?
The flag is a hint "the contents of this buffer are silent" - so the
mixer could still use this buffer internally (or any other audio unit
for that matter), but if it can skip it because it is silent, then it
can do it too.
If you really don't want to provide any audio data, then the correct
semantic would be to return an error. The correct behaviour then is
for the AU to either return an error from its render call (which an
effect will do for instance), or just ignore your input - which the
mixer will do. My reservation about this (because we haven't tested
it), is what would happen if every input to the mixer returned an
error - I think the mixer would return a silent buffer, but it might
return an error too (neither might be that bad, I just don't know, and
its too much code to look through tonight :) - as you are set up,
should be an easy case for you to test.
Bill
aran
_______________________________________________
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