• 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: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7


  • Subject: Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7
  • From: "Dave O'Neill" <email@hidden>
  • Date: Mon, 01 Sep 2014 10:30:03 -0700

I'm not sure what changed this version of Xcode to break your old code, maybe some channels of the mixer weren't enabled (you could try panning them to test).  On the mixer, each channel can be stereo or mono and will call it's callback once per cycle.  So if you have one data structure that is supposed to be advanced once each cycle, it ends up getting advanced multiple times per cycle because each channel calls the same callback advancing the same data structure.  


On Mon, Sep 1, 2014 at 10:12 AM, Pascal <email@hidden> wrote:
Dave,

I think you found the origin of the probelm. I tried with MAX_TRACKS = 1 and it sounds fine. 

I am indeed setting the render callback on multiple channels of the mixer. Based on the inBusNumber, I read a different audio data (contains in an array[MAX_TRACKS+1]).
 
What I now don’t get is that why my mixer does not properly “mix” multiple channels. Like it used to with xcode5. Has some settings changed with xcode5? 

Many thanks Dave.

Pascal 

On 1 sept. 2014, at 18:34, Dave O'Neill <email@hidden> wrote:

Pascal 

Are you setting the render callback on multiple channels of the mixer?  If so, you should be using different data structures for each sine wave generator.  Otherwise the render callback will be called MAX_TRACKS  + 1 times per cycle and that could be distorting your wave. I would normally assume that you would only set the callback once on one channel of the mixer.


 _______________________________________________
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: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7
      • From: Pascal <email@hidden>
References: 
 >Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7 (From: Pascal <email@hidden>)
 >Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7 (From: "Dave O'Neill" <email@hidden>)
 >Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7 (From: Pascal <email@hidden>)
 >Fwd: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7 (From: "Dave O'Neill" <email@hidden>)
 >Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7 (From: Pascal <email@hidden>)

  • Prev by Date: Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7
  • Next by Date: How to stream an mp3 file to a web hosting service
  • Previous by thread: Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7
  • Next by thread: Re: from xcode5 to xcode6-beta6, sounds are now distorted on iOS7
  • Index(es):
    • Date
    • Thread