summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/MediaPlayerService.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-06-01 08:18:08 -0700
committerGlenn Kasten <gkasten@google.com>2015-06-01 10:36:56 -0700
commit421743b3f8d14b700f2e1be256e010756fa85af8 (patch)
tree42744bdb16ca0ccaf3b7af79ef5d9a3bbd68e1cc /media/libmediaplayerservice/MediaPlayerService.cpp
parent11804f5ca4ebd3527e7cc3bcc529e8358a519f8e (diff)
downloadframeworks_av-421743b3f8d14b700f2e1be256e010756fa85af8.zip
frameworks_av-421743b3f8d14b700f2e1be256e010756fa85af8.tar.gz
frameworks_av-421743b3f8d14b700f2e1be256e010756fa85af8.tar.bz2
Explicit log for AudioTrack::EVENT_UNDERRUN
Prompted by this bug, but not a fix for the bug Bug: 21352202 Change-Id: I350d9d8660a367470450c9f54d7c541d4896ebda
Diffstat (limited to 'media/libmediaplayerservice/MediaPlayerService.cpp')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 9c0af4a..258dc13 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -1884,6 +1884,15 @@ void MediaPlayerService::AudioOutput::CallbackWrapper(
me->mCallbackCookie, CB_EVENT_TEAR_DOWN);
break;
+ case AudioTrack::EVENT_UNDERRUN:
+ // This occurs when there is no data available, typically occurring
+ // when there is a failure to supply data to the AudioTrack. It can also
+ // occur in non-offloaded mode when the audio device comes out of standby.
+ //
+ // If you see this at the start of playback, there probably was a glitch.
+ ALOGI("callbackwrapper: EVENT_UNDERRUN (discarded)");
+ break;
+
default:
ALOGE("received unknown event type: %d inside CallbackWrapper !", event);
}