[android-developers] MediaPlayer sluggish to play sounds

2009-06-29 Thread Baratong
I've found the audio subsystem is a little quirky. It's great if you are playing songs, or video but if you are writing a game that plays short sounds quickly it poses problems. After much work I found a pretty cool solution to one of the annoying problems of MediaPlayer being sluggish to play au

[android-developers] MediaPlayer sluggish to play sounds

2009-03-31 Thread Eric M. Burke
I have an Activity that plays a brief OGG "pop" sound effect when bubbles pop. To keep it fast and to ensure I can play several pops, I create four MediaPlayer instances. I synchronize access to a pool of instances, so I can play up to four pops at once. Once a sound completes, I call seekTo(0) an