• 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
rendered sound is crackly under iOS8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rendered sound is crackly under iOS8


  • Subject: rendered sound is crackly under iOS8
  • From: Bob Sabiston <email@hidden>
  • Date: Mon, 02 Mar 2015 19:21:39 -0600

Hello,

  I wrote about this a few weeks ago but I don’t think anyone had a response.  I am trying to update my game from iOS7 to 8.   My rendered sounds are full of noise on iOS8 and I haven’t been able to figure out the problem. 

The AudioUnitSampleType is deprecated, for one thing.  I’ve tried setting it to float, and to SInt32, as that seems to be the two possible old values.  But it doesn’t fix the problem.  Also when setting up the AudioStreamBasicDescription stream format, the mFormatFlags used to be kAudioFormatFlagsAudioUnitCanonical.   I’ve read that it should now be kAudioFormatFlagIsFloat | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved.

I’ve tried that and also changing ‘IsFloat’ to ‘IsSInt32’ to match whatever I had AudioUnitSampleType defined as.  Nope, didn’t work.

Does anyone use the AUGraph stuff, with AUGraphSetNodeInputCallback for example to set the callback to render a buffer full of sound samples?  I use that and a bunch of AudioUnit stuff like  result = AudioUnitSetProperty (
                                               mixerUnit,
                                               kAudioUnitProperty_StreamFormat,
                                               kAudioUnitScope_Input,
                                               busNumber,
                                               &monoStreamFormat,
                                               sizeof (monoStreamFormat)
                                               );

It’s a couple of years since I looked at this stuff and I remember it being a pain to get working in the first place.   Anyone else had to port code using these functions to iOS8?  Any ideas about why it isn’t working right?

Thanks!
Bob

 _______________________________________________
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

  • Prev by Date: Re: memset AND struct = {0}?
  • Next by Date: Re: Coreaudio-api Digest, Vol 12, Issue 43
  • Previous by thread: Re: memset AND struct = {0}?
  • Next by thread: Re: Coreaudio-api Digest, Vol 12, Issue 43
  • Index(es):
    • Date
    • Thread