Re: Input Render Callback and Channels
Re: Input Render Callback and Channels
- Subject: Re: Input Render Callback and Channels
- From: William Stewart <email@hidden>
- Date: Mon, 19 Oct 2009 18:01:20 -0700
you can't change the format on the fly - you would have to
uninitialise the AU. Also, because you are changing the format of a
connection between 2 audio units (the effect output to the input of
the output AU), you also have to disconnect these two audio units. So,
I suspect that you are not checking the result of the format change
SetProperty call, and it is failing. You should check the results of
calls _ if only adding some simple logging when you get a result you
don't expect (ca_verify_noerr, etc in CAXException.h are quite useful)
Bill
On Oct 19, 2009, at 2:47 PM, Darrell Gibson wrote:
I've created AUGraph that connects an FX AU to a GenericOutput AU
(nothing else). I have then defined an Input Callback on the input
to the FX AU to supply data to the graph. Everything is fine while
I'm processing stereo data, but when I want to process mono data I
run into problems. The main problem is that despite changing the
ASBD for the AUs to represent only one channel, the Input Callback
still expects to process an ABL (ioData) containing two channels
(one in each buffer). Why is this? I would have assumed that the
Input Callback should be called with an ABL that corrosponds to the
number of channels that the AUs will be processing. Is this not
correct?
I've been messing around with the code for a few days now and don't
seem to be getting any closer to a solution. Any help would be
greatly appreciated.
Thanks,
Darrell Gibson
.
BU - the UK's Number One New University
The Guardian University Guide 2009 & 2010
This email is intended only for the person to whom it is addressed
and may contain confidential information. If you have received this
email in error, please notify the sender and delete this email,
which must not be copied, distributed or disclosed to any other
person.
Any views or opinions presented are solely those of the author and
do not necessarily represent those of Bournemouth University or its
subsidiary companies. Nor can any contract be formed on behalf of
the University or its subsidiary companies via email.
_______________________________________________
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