Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 421743b3 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Explicit log for AudioTrack::EVENT_UNDERRUN

Prompted by this bug, but not a fix for the bug

Bug: 21352202
Change-Id: I350d9d8660a367470450c9f54d7c541d4896ebda
parent 11804f5c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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);
    }