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

Commit f914d810 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: e2bc76b9

parents b961aaef e2bc76b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7975,7 +7975,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) {