commit | 9adb12830ac2da72c91b842d24725ced6d236b16 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Mon Apr 23 16:17:23 2012 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Apr 23 16:17:23 2012 -0700 |
tree | e0dcae866fd287bd0527d23ab2ddbf9143d1dee8 | |
parent | adb6e8dc714f38e261b1593efa4eb17bac5e1678 [diff] | |
parent | db46b48d24e03f5bcb8de6d0ff852ec4153401e7 [diff] |
Merge "Downmix support for 5.1 and quad with side channels"
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index 9d338f3..5d5a312 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp
@@ -1402,7 +1402,10 @@ return true; } } - return mReceiver.processAudioBuffer(this); + if (!mReceiver.processAudioBuffer(this)) { + pause(); + } + return true; } status_t AudioTrack::AudioTrackThread::readyToRun()