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

Commit 61ff90cc authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "Skip frames out limit for non pcm" into main

parents 2b558d80 dea650ce
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -8553,9 +8553,11 @@ reacquire_wakelock:
                // from framesIn.
                // This isn't strictly necessary but helps limit buffer resizing in
                // RecordBufferConverter.  TODO: remove when no longer needed.
                if (audio_is_linear_pcm(activeTrack->format())) {
                    framesOut = min(framesOut,
                            destinationFramesPossible(
                                    framesIn, mSampleRate, activeTrack->sampleRate()));
                }

                if (activeTrack->isDirect()) {
                    // No RecordBufferConverter used for direct streams. Pass