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

Commit e2bc76b9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents b1a3b26f 48e8f0c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7866,7 +7866,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) {