Skip to content Skip to sidebar Skip to footer

Sound Sometimes Remains Silent When Playing More Sounds In A Row, Why?

I encountered with a weird problem and hope that someone can answer it.. I have 4x4 buttons, each of them plays a short 1 second sound if I click on it. My code for it: Button_1= (

Solution 1:

When you call MediaPlayer.create() you allocate resources that aren't necessarily released by the GC mechanism. You should manually release the MediaPlayer.release() routine. when you are finished with the object


Post a Comment for "Sound Sometimes Remains Silent When Playing More Sounds In A Row, Why?"