aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/jni.h
diff options
context:
space:
mode:
authordhewg2011-02-26 18:44:17 +0100
committerdhewg2011-02-27 09:04:37 +0100
commit0e869a5cf0e455f7cd5ce5c39192f3433b931e97 (patch)
tree992bc587994ce7fd3bf9048438b1881dcf3b94be /backends/platform/android/jni.h
parentbea57f695064c6f084ff26405d91b812848fee33 (diff)
downloadscummvm-rg350-0e869a5cf0e455f7cd5ce5c39192f3433b931e97.tar.gz
scummvm-rg350-0e869a5cf0e455f7cd5ce5c39192f3433b931e97.tar.bz2
scummvm-rg350-0e869a5cf0e455f7cd5ce5c39192f3433b931e97.zip
ANDROID: Pause the AudioTrack when possible
Only works in situations without any registered channels (or all paused) at the mixer (like on the launcher or GMM). CPU usage before (Galaxy Tab): ~5% scummvm ~15% mediaserver After: ~2% scummvm 0% mediaserver ;)
Diffstat (limited to 'backends/platform/android/jni.h')
-rw-r--r--backends/platform/android/jni.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/platform/android/jni.h b/backends/platform/android/jni.h
index a1fc3df67e..0bc64980e2 100644
--- a/backends/platform/android/jni.h
+++ b/backends/platform/android/jni.h
@@ -95,6 +95,7 @@ private:
static jmethodID _MID_destroyScummVMSurface;
static jmethodID _MID_swapBuffers;
+ static jmethodID _MID_AudioTrack_flush;
static jmethodID _MID_AudioTrack_pause;
static jmethodID _MID_AudioTrack_play;
static jmethodID _MID_AudioTrack_stop;