On 12/29/2009 01:01 PM, Ravinder wrote: > > I am trying to play raw audio samples ( 16 bit , stereo , @ 32000KHz) > using AudioTrack, in "MODE_STREAM" mode. > > I could play the first video buffer successfully but, After having > received "onMarkerReached" for that raw audio buffer, I wonder how to > push more audio data in AudioTrack ? without closing/stopping it. > Writing more data to AudioTrack in "onMarkerReached" callback does > not help. > > I am using the same thread to construct the AudioTrack and pump in > audio - buffers and receive callbacks.
AudioTrack in MODE_STREAM is very simple to use. Just call write() repeatedly. It will block if the AudioTrack buffer is full, and return as soon as space has been freed in the buffer and data could be written. You don't need to deal with onMarkerReacher() for $subj. -- Olivier -- 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

