Loading media/libaudioclient/AudioTrack.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -810,6 +810,13 @@ void AudioTrack::stop() if (t != 0) { if (!isOffloaded_l()) { t->pause(); } else if (mTransfer == TRANSFER_SYNC_NOTIF_CALLBACK) { const sp<AudioTrackThread> t = mAudioTrackThread; if (t != 0) { // causes wake up of the playback thread, that will callback the client for // EVENT_STREAM_END in processAudioBuffer() t->wake(); } } } else { setpriority(PRIO_PROCESS, 0, mPreviousPriority); Loading Loading
media/libaudioclient/AudioTrack.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -810,6 +810,13 @@ void AudioTrack::stop() if (t != 0) { if (!isOffloaded_l()) { t->pause(); } else if (mTransfer == TRANSFER_SYNC_NOTIF_CALLBACK) { const sp<AudioTrackThread> t = mAudioTrackThread; if (t != 0) { // causes wake up of the playback thread, that will callback the client for // EVENT_STREAM_END in processAudioBuffer() t->wake(); } } } else { setpriority(PRIO_PROCESS, 0, mPreviousPriority); Loading