summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2012-08-19 11:31:32 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2012-08-19 11:31:32 +0800
commit6b5ecdfb9e0acdc2c22b1814b2b2718275434837 (patch)
treeb24b344a0d8e7cf2f47dca3b85e76ac7e9640c4e
parentb37f657a11299ca4935af05b555deafd8a43cd49 (diff)
Removed sleep between writing data to audio track
-rw-r--r--src/device_android.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device_android.cpp b/src/device_android.cpp
index 1c15eb7..07a7390 100644
--- a/src/device_android.cpp
+++ b/src/device_android.cpp
@@ -54,12 +54,10 @@ namespace audiere {
void
AndroidAudioDevice::update() {
- if (!AGAudioIsPaused()) {
- AI_Sleep(1);
+ if (!AGAudioIsPaused())
writeData();
- } else {
+ else
AI_Sleep(10);
- }
}
const char* ADR_CALL