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

Commit da303964 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Audioflinger: adjust wait time for duplicating thread" into main am:...

Merge "Audioflinger: adjust wait time for duplicating thread" into main am: e2bc76b9 am: f914d810

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/3324273



Change-Id: Ibb2c1e9e118bdbb496f720a062e32a6536e303a8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 44c96fc2 f914d810
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8034,7 +8034,8 @@ void DuplicatingThread::removeOutputTrack(IAfPlaybackThread* thread)
// caller must hold mutex()
void DuplicatingThread::updateWaitTime_l()
{
    mWaitTimeMs = UINT_MAX;
    // Initialize mWaitTimeMs according to the mixer buffer size.
    mWaitTimeMs = mNormalFrameCount * 2 * 1000 / mSampleRate;
    for (size_t i = 0; i < mOutputTracks.size(); i++) {
        const auto strong = mOutputTracks[i]->thread().promote();
        if (strong != 0) {