• 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: Pascal <email@hidden>
  • Date: Tue, 02 Sep 2014 15:37:23 +0200

Nice one. I’ll try passing a refCon instead of self. 

Thanks.

Pascal

On 2 sept. 2014, at 15:33, Dave O'Neill <email@hidden> wrote:

Pascal

Maybe somewhere else in your code you are having a 64 bit problem.  Casting pointers can go wrong with 64 bit and some other things as well.  I've had great success with the built in mixer and it is very efficient.  Try passing pointers to separate structs for your inRefCon instead of self.  It forces you to separate your playback logic and might help you find your bug.

Dave

On Tuesday, September 2, 2014, Pascal <email@hidden> wrote:
This is exactly what I have been doing for the last 3 years, having callbacks callings various data structures, depending on the inBusNumber value. It is has been working just fine with xcode3, xcode4, xcode 5, iOS 4, iOS 5,  OS 6 and iOS 7. Now it is only with my app built with xcode6 running on ios7 that I get the saturation, as if the MultipleChannelMixer wasn’t properly doing its “mixing” job like it used. And again it works well with xcode6/ios8. What the hell?

This is most confusing. I have been researching today about issues with MultipleChannelMixers or any unusual parameters that I may have skipped. But no luck. 

My solution is going to to forget about MultipleChannel and to do my own mixing in one callback using vDSP functions.

Best,

Pascal 

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

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>)
 >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>)

  • Prev by Date: How to put a exs sample instrument to an iOS app bundle so AUSampler can properly load it
  • Next by Date: Re: How to put a exs sample instrument to an iOS app bundle so AUSampler can properly load it
  • 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