summaryrefslogtreecommitdiffstats
path: root/media/libmedia
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-09-18 10:59:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-18 10:59:17 -0700
commit684e0ae8ac8cfb7c7a9709a7b4fc6caf485dfb8a (patch)
treef8b805ac0f5af6f31d67fadcee69d8f55ea959f7 /media/libmedia
parentec467110f23ad98630d4fd504d647ac70d78f279 (diff)
parent9a98b6de791aeb130192df10744f5b35f8b6ef1a (diff)
downloadframeworks_av-684e0ae8ac8cfb7c7a9709a7b4fc6caf485dfb8a.zip
frameworks_av-684e0ae8ac8cfb7c7a9709a7b4fc6caf485dfb8a.tar.gz
frameworks_av-684e0ae8ac8cfb7c7a9709a7b4fc6caf485dfb8a.tar.bz2
am 9a98b6de: Merge "Partial fix for SoundPool not terminating" into klp-dev
* commit '9a98b6de791aeb130192df10744f5b35f8b6ef1a': Partial fix for SoundPool not terminating
Diffstat (limited to 'media/libmedia')
-rw-r--r--media/libmedia/SoundPool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/SoundPool.cpp b/media/libmedia/SoundPool.cpp
index 0985164..5239b2f 100644
--- a/media/libmedia/SoundPool.cpp
+++ b/media/libmedia/SoundPool.cpp
@@ -740,8 +740,8 @@ void SoundChannel::process(int event, void *info, unsigned long toggle)
b->size = count;
//ALOGV("buffer=%p, [0]=%d", b->i16, b->i16[0]);
}
- } else if (event == AudioTrack::EVENT_UNDERRUN) {
- ALOGV("process %p channel %d EVENT_UNDERRUN", this, mChannelID);
+ } else if (event == AudioTrack::EVENT_UNDERRUN || event == AudioTrack::EVENT_BUFFER_END) {
+ ALOGV("process %p channel %d EVENT_UNDERRUN or EVENT_BUFFER_END", this, mChannelID);
mSoundPool->addToStopList(this);
} else if (event == AudioTrack::EVENT_LOOP_END) {
ALOGV("End loop %p channel %d count %d", this, mChannelID, *(int *)info);