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

Commit ed474f37 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioTrack: fix write retries for compressed audio" into klp-dev

parents e81da7e0 42a6f422
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1550,7 +1550,7 @@ nsecs_t AudioTrack::processAudioBuffer(const sp<AudioTrackThread>& thread)
            return NS_NEVER;
        }

        if (mRetryOnPartialBuffer) {
        if (mRetryOnPartialBuffer && !isOffloaded()) {
            mRetryOnPartialBuffer = false;
            if (avail < mRemainingFrames) {
                int64_t myns = ((mRemainingFrames - avail) * 1100000000LL) / sampleRate;