From 6136155756a4dc517acd1872aabc0d5c489099a5 Mon Sep 17 00:00:00 2001 From: Luo Jinghua Date: Fri, 24 Feb 2012 12:54:53 +0800 Subject: Don't update the audio data if the audio track was paused --- src/device_android.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3