> how can I prevent (or at least minimize) the delay

When AudioTrack object is created, buffer size is passed into a
constructor among other parameters.
AudioTrack won't start playing until you write at least that amount of
data into it.
I presume that in your case chosen buffer size is siginificantly
larger than AudioTrack.getMinBufferSize.
That's why it doesn't start playing when the first data portion is
written.

> famous obtainBuffer timed out (is the CPU pegged?) warning

It appears to the worst in 1.5 emulator.
Much better in Android 2+ emulator (shown maybe once per 4 seconds).
I have never seen this warning when testing on a real device.
My suggestion is to ignore it.

-- 
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

Reply via email to