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

Commit 90869ff4 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Explicit log for AudioTrack::EVENT_UNDERRUN" into mnc-dev

parents 1d28f6ad 421743b3
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);
    }