[RESOLVED] Problem with Audio - choppy sound

Greetings, I’m creating my first game in Corona SDK and I’m facing with one problem with audio sounds. I have .lua file named audioManager.lua that is responsible for loading/playing all game sounds. This is short example of that file:

audioManager.lua local cashSound; local manHit; local scream; function loadSounds()     cashSound=audio.loadSound("sounds/cash\_sound.mp3");     manHit=audio.loadSound("sounds/man\_hit.mp3");     scream=audio.loadSound("sounds/scream.mp3"); end function playScream()     audio.play(scream); end function playManHitSound()     audio.play(manHit); end function playCashSound()     audio.play(cashSound); end  

All my sounds I’m loading at the begining of game - calling method loadSounds(). Later in my level.lua file I’m calling audioManager.lua file

require("audioManager")  

and when I want to play specific sound I simply call method audioManager.playCashSound() for example. Everything works great on most devices, but on some devices(LG, Huawei) sounds are pretty choppy.

Does anybody know where is my mistake? All my mp3 files are 96kbps and 128kbps. I’ve also tried with .wav format but it didn’t solve the problem.

Thaks in advance!

Edit:

 I’ve also noticed that this problem happens when more than one sound are playing in the same time

I’ve solved this problem problem a couple of weeks ago. Actually the problem was in audio files: all my files were 44KHz and that was huge problem for slower devices.

Now all my files are 22KHz and everything works fine.

I hope this will help someone.

I’ve solved this problem problem a couple of weeks ago. Actually the problem was in audio files: all my files were 44KHz and that was huge problem for slower devices.

Now all my files are 22KHz and everything works fine.

I hope this will help someone.