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

Commit 3bab4aad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "aaudio: do not force legacy burst to callback size"

parents 424180bd 267afb19
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -119,7 +119,8 @@ aaudio_result_t AudioStreamTrack::open(const AudioStreamBuilder& builder)
            // that is some multiple of the burst size.
            notificationFrames = 0 - DEFAULT_BURSTS_PER_BUFFER_CAPACITY;
        } else {
            notificationFrames = builder.getFramesPerDataCallback();
            // To avoid glitching, let AudioFlinger pick the optimal burst size.
            notificationFrames = 0;
        }
    }
    mCallbackBufferSize = builder.getFramesPerDataCallback();