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

Commit b882d487 authored by Dorin Drimus's avatar Dorin Drimus
Browse files

Fix playbackHeadPosition after starting tracks with a startThresholdInFrames

Bug: 305053946
Test: atest AudioTrackTest#testZeroPositionStartThresholdInFrames
Change-Id: I6f18c2be0206a0ad0b6cc00a0ca023cd29a433ec
parent e201d442
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1233,7 +1233,7 @@ status_t Track::start(AudioSystem::sync_event_t event __unused,
                && (state == IDLE || state == STOPPED || state == FLUSHED)) {
            mFrameMap.reset();

            if (!isFastTrack() && (isDirect() || isOffloaded())) {
            if (!isFastTrack()) {
                // Start point of track -> sink frame map. If the HAL returns a
                // frame position smaller than the first written frame in
                // updateTrackFrameInfo, the timestamp can be interpolated