Quantcast
Viewing all articles
Browse latest Browse all 204402

AVAudioPlayer mixes produces pops and cracks on newer iPhones

I have an app with a background music AVAudioPlayer and a soundEffects AVAudioPlayer, per the recommended recipe here:
[Forums won't let me post links. It's the "Playing Sound with AVAudioPlayer" article on the Xamarin developer page.]

I've noticed that on iPhone7, iPhone8 & iPhoneX, this produces sporadic popping and cracking artifact when both players are concurrently playing sounds. iPhones prior to these releases sound great. (Note that starting on iPhone7 they introduced new stereo speaker hardware. Curious if this is the culprit.)

If listened through the headphones, all iOS devices sound fine, including the newer ones. It is only when using the devices external speakers do I notice the audio artifacts.

I have experimented with adjusting the volumes, preloading the sounds, changing the sound file dynamics themselves, completely different sounds, panning, file codecs, metering -- all with no success.
It's only on newer iPhones that I see this issue.

Any insight or tips to resolve? Thanks all!


Viewing all articles
Browse latest Browse all 204402

Trending Articles