Call AudioTrack.flush() before AudioTrack.release().
On NVIDIA Shield, recreated passthrough AudioTracks have incorrect playback head positions, due to shared state with the previously destroyed passthrough AudioTrack. Calling AudioTrack.flush() before AudioTrack.release() ensures this state is cleared. This is a safe change so I have not made it a device-specific workaround. The combined time for flush and release is less than 10 ms (with flush normally taking less than two ms).
Showing
with
1 additions
and
0 deletions
Please
register
or
sign in
to comment