I have problem with AVAudioPlayer and playing the short sounds in my spritekit game. I have quite dynamic game scene and when the user tap into particular element I want to play simple "beep" sound, but I notice that performing sound using AVAudioPlayer cause significant performance issue.
My audio files are in .mp3 format.
Also I have tried SKAction method (playSoundFileNamed) to perform sound and everything looks almost the same, I noticed the same performance issue.
My question is what is the best practice to perform sound in SpriteKit.
PS: I tried to find WWDC Adventure spritekit sample code to check how they resolve problem with playing sounds, but unfortunately sample code is no longer available.