Thursday, August 26, 2010

[android-developers] AudioTrack flush() does not work

I am calling stop(), flush(), start() on my audiotrack when changning
songs.

This seems to only work the first time. After that, playbackposition
does not become 0, and in fact all the data queued up from the old
song plays until the buffer is drained. This is pretty bad, since I
need a large buffer to avoid skipping under heavy CPU load.

Is this a known problem? Any way around it?

-- Jonas Minnberg

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate