diff options
author | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-03-08 15:10:48 +0800 |
---|---|---|
committer | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-03-08 15:10:48 +0800 |
commit | 87be945d49e1f53a34f7e4a27fa9b17e527b43c4 (patch) | |
tree | c1fb9e1ac10bac08c25c31bbf3a29848b90a4c49 /platform/android/audio_driver_opensl.cpp | |
parent | f5d2e1f42cca1c5b078073133fccda63c556a0da (diff) | |
parent | 2c2894ceb674927a35d2798b3e63adabdb020077 (diff) |
Merge remote-tracking branch 'upstream/master' into x11-window-management
Diffstat (limited to 'platform/android/audio_driver_opensl.cpp')
-rw-r--r-- | platform/android/audio_driver_opensl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/android/audio_driver_opensl.cpp b/platform/android/audio_driver_opensl.cpp index 857d1a4a54..4c0c095e10 100644 --- a/platform/android/audio_driver_opensl.cpp +++ b/platform/android/audio_driver_opensl.cpp @@ -396,6 +396,14 @@ void AudioDriverOpenSL::finish(){ void AudioDriverOpenSL::set_pause(bool p_pause) { pause=p_pause; + + if (active) { + if (pause) { + (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PAUSED); + } else { + (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING); + } + } } |