Using a buffer with Android AudioTrack

Viewed 21088

I'm trying to figure how I would use a buffer with AudioTrack to effectively stream music. I know you can queue audio using the write method but once the audio is queued how do you tell how much is left vs. how much has been used/played? Sorry if this is a rudimentary question. I understand the concept of a buffer I'm just not sure how to write one, especially using AudioTrack.

2 Answers
Related