mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Before this change we'd release the audio track and create a new one as soon as audio processors had drained when reconfiguring. Fix this behavior by stop()ing the AudioTrack to play out all written data. Issue: #2446 PiperOrigin-RevId: 244812402