mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00

If connecting a Bluetooth audio device fails, the AudioTrack may be left in a bad state, where it is not actually playing and its position has jumped back to zero. Detect and work around this case by resetting the track. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=172600912