• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More than 1 bus in a Node creating distorded audio?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: More than 1 bus in a Node creating distorded audio?
      • From: Patrick Muringer <email@hidden>
References: 
 >More than 1 bus in a Node creating distorded audio? (From: "Patrick Muringer" <email@hidden>)

  • Prev by Date: Re: Audio Queue Recording and Playing at the same time?
  • Next by Date: Re: Audio Queue Recording and Playing at the same time?
  • Previous by thread: More than 1 bus in a Node creating distorded audio?
  • Next by thread: Re: More than 1 bus in a Node creating distorded audio?
  • Index(es):
    • Date
    • Thread