SoundPool slow in Android

Started by
0 comments, last by EddieK 6 years, 3 months ago

Hi i'm trying incorporate sounds into my game and I have ran into troubles with performance. Whenever I call:


soundPool = new SoundPool.Builder().setAudioAttributes(new AudioAttributes.Builder().build()).build();

I immediately notice lagging and the framerate drops drastically. I don't even have to actually play the sounds for the framerate drop to occur.

Is there anything I can do to fix this issue?

Thanks in advance.

 

P.S. Never mind, I figured out that restarting the phone got rid of the lagg and it wasn't because of the sound.

This topic is closed to new replies.

Advertisement