- ANDROID audio renderer : added a state check on the MediaPlayer to prenvent it to throw errors

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9437 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
rem..om 2012-05-29 14:52:23 +00:00
parent 0fe3b69f7d
commit d76d58c0e9

View File

@ -436,7 +436,9 @@ public class AndroidAudioRenderer implements AudioRenderer,
if (soundPool != null) {
soundPool.autoPause();
for (MediaPlayer mp : musicPlaying.values()) {
mp.pause();
if(mp.isPlaying()){
mp.pause();
}
}
}
}