media/libraries/exoplayer/src
michaelkatz a789db5b41 Update cached playbackHeadPosition when pausing after AudioTrack.stop()
In some streaming scenarios, like offload, the sink may finish writing buffers a bit before playback reaches the end of the track. In this case a player may pause while in this 'stopping' state.

The AudioTrackPositionTracker needs to update the cached values it uses to calculate position in the `PLAYSTATE_STOPPED`/`PLAYSTATE_STOPPING` states if pause/play are called during this period.

PiperOrigin-RevId: 571345914
2023-10-06 08:37:24 -07:00
..
androidTest Move DefaultImageDecoderTest in tests 2023-09-21 03:53:42 -07:00
main Update cached playbackHeadPosition when pausing after AudioTrack.stop() 2023-10-06 08:37:24 -07:00
test Update cached playbackHeadPosition when pausing after AudioTrack.stop() 2023-10-06 08:37:24 -07:00