rendered audio problem with iOS 8
rendered audio problem with iOS 8
- Subject: rendered audio problem with iOS 8
- From: Bob Sabiston <email@hidden>
- Date: Sat, 14 Feb 2015 13:11:47 -0600
Hello,
I am trying to update a videogame for iOS8. The game synthesizes its own sounds, and when compiling using the iOS8 SDK I got a lot of these errors:
'AudioUnitSampleType' is deprecated: The concept of canonical formats is deprecated
By looking around online I found some suggestions to replace ‘AudioUnitSampleType' with ‘SInt32’. So I did that.
I also replaced:
stereoStreamFormat.mFormatFlags = kAudioFormatFlagsAudioUnitCanonical;
with this:
stereoStreamFormat.mFormatFlags = kAudioFormatFlagIsFloat | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved;
Now, I don’t really know what I am doing here, I was just following what someone on the web said. But this *almost* works. It compiles and the sounds play like they should — *except* there is noise present, a crackling sound during some of the noises that was not there before.
I’m really hoping someone here knows what might cause this and can suggest a fix!?
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