summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2012-02-24 12:54:53 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2012-02-24 12:54:53 +0800
commit6136155756a4dc517acd1872aabc0d5c489099a5 (patch)
tree2d15803cdc9d32a637988e96f71341fb55fc43e6 /src
parent0ff81a02b71ccdfa2a5a2f0ee59ed07eb36476b1 (diff)
Don't update the audio data if the audio track was paused
Diffstat (limited to 'src')
-rw-r--r--src/device_android.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/device_android.cpp b/src/device_android.cpp
index fb03df7..24b3153 100644
--- a/src/device_android.cpp
+++ b/src/device_android.cpp
@@ -52,8 +52,12 @@ namespace audiere {
void
AndroidAudioDevice::update() {
- AI_Sleep(1);
- writeData();
+ if (!AGAudioIsPaused()) {
+ AI_Sleep(1);
+ writeData();
+ } else {
+ AI_Sleep(10);
+ }
}
const char* ADR_CALL