- 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:
parent
0fe3b69f7d
commit
d76d58c0e9
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user