The developer documentation says that I should call Pause () and then Flush () (to discard the playback data).
But that does not work.
I found that if I add a slight delay between the calls to AudioTrack.Pause () and AudioTrack.Flush (). Sound playback stops almost immediately, but sometimes it does not work.
So, how to immediately stop the audio track?
source
share