thank you again. yes, i found getPlaybackHeadPosition() in your posts. since my sampling rate is 8000, i have no problem with getPlaybackHeadPosition() if pause() is NOT called.
On Feb 26, 1:06 am, blindfold <seeingwithso...@gmail.com> wrote: > > thanks, though therein i didnt find anything about > > getPlaybackHeadPosition() .... > > Then you missed my posts 12 and 13 in that thread, > > http://groups.google.com/group/android-developers/tree/browse_frm/thr... > > as well as my bug report > > http://code.google.com/p/android/issues/detail?id=2563 > > Regards > > On Feb 26, 12:33 am, HeHe <cnm...@gmail.com> wrote: > > > > > thanks, though therein i didnt find anything about > > getPlaybackHeadPosition() .... > > > i just cannot believe that a simple function like > > getPlaybackHeadPosition() can go wrong. > > > anyone has getPlaybackHeadPosition() work with pause()? > > > On Feb 25, 12:38 am, blindfold <seeingwithso...@gmail.com> wrote: > > > > See the earlier > > > threadhttp://groups.google.com/group/android-developers/browse_frm/thread/5... > > > > I did not get useful results from trying to get the current playing > > > position and gave up on it. I do not know if Android 2.1 is any better > > > here. > > > > On Feb 25, 1:12 am, HeHe <cnm...@gmail.com> wrote: > > > > > folks, > > > > > does anybody use AudioTrack.getPlaybackHeadPosition()? > > > > i found that, if i call AudioTrack.pause() in the middle of playing > > > > audio frames, at end of playback getPlaybackHeadPosition() always > > > > returns hundreds of frames less than the number of frames fed into > > > > the > > > > AudioTrack object . > > > > > did anybody also run into the same issue? > > > > > if you did, how did you work around this unexpected behavior? > > > > > thank u~ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en