theoretically, AudioTrack.getPlaybackHeadPosition should do the job. however, in my experience with SDK 1.5, the function seems broken after you *pause" the player. i removed it from my app then, so i have no idea if the issue is gone for SDK 1.6+...
On Apr 5, 3:00 am, KK <[email protected]> wrote: > I am trying to write a streaming application. I have my own decoder > and I am playing PCM audio using AudioTrack. At any point in time I > want to know how much data is buffered with the device. I want to use > this so that if the data with the device go below a level, I want to > go into a buffering mode where I will buffer 2-3 seconds of data > before continuing playback again. Can someone please tell me how to do > this? > > Thanks in advance > KK -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

