Re: More than 1 bus in a Node creating distorded audio?
Re: More than 1 bus in a Node creating distorded audio?
- Subject: Re: More than 1 bus in a Node creating distorded audio?
- From: William Stewart <email@hidden>
- Date: Mon, 23 Aug 2010 18:05:22 -0700
On Aug 22, 2010, at 11:49 PM, Patrick Muringer wrote:
> Hi all,
>
> When having more than one bus in a nod by doing
>
> err = AUGraphSetNodeInputCallback(graph, MixerNode, 0,
> &callback);,
so, this code above is only adding a callback for bus 0
To add a callback for each bus you would have to say do a loop:
for (int i = 0; i < numActiveBuses; ++i)
AUGraphSetNodeInputCallback(graph, MixerNode, i, &callback); // note the use of the variable "i" here to add the callback
> starting from bus 2 and the next, Audio is always too much
> high on the left channel. For the two first busses, audio is
> perfect.
>
> In the callback, I always check the inBusNumber to fill the
> buffer (ioData->mBuffers[0].mData)
There isn't a direct relationship between the buffer and the bus number.
When your callback is added, it is called for each and every bus you have a callback for, and each callback provides a buffer that you have to completely fill for that bus.
Bill
>
> Anything I do wrong?
>
> Thanks for your answers.
>
> PM
>
>
>
> _______________________________________________
> 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