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      (Coreaudio-api@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to