I tried the sample project attest.zip for AudioTrack and I can't figure out how to pause/resume playing.
Calling at.pause immediately triggers the Play_Ended event. And if I comment out at.Release and call at.play it will only play for a few milliseconds which I'm guessing is the data left in the buffer, then nothing else.
Calling at.pause immediately triggers the Play_Ended event. And if I comment out at.Release and call at.play it will only play for a few milliseconds which I'm guessing is the data left in the buffer, then nothing else.
B4X:
Sub activity_Click
ToastMessageShow("pause", False)
at.Pause
End Sub
Sub activity_LongClick
ToastMessageShow("resume", False)
at.Play
End Sub