googlearchive / android-audio-high-performance

We now recommend you use the Oboe libraries:
https://github.com/google/oboe
Apache License 2.0
720 stars 275 forks source link

existingFrameIndex in getTimestamp has a non consistent behavior #80

Closed jbcolme closed 7 years ago

jbcolme commented 7 years ago

I'm getting a non consistent behavior using AAudioStream_getTimestamp.

After a first pause, flush, and restart, a quick call to AAudioStream_getTimestamp returns existingFrameIndex = 0. This was unexpected, because the position and time passed back are monotonically increasing (from the documentation)

After the second or any other pause, flush and restart, existingFrameIndex is not reset to 0 any more.

dturner commented 7 years ago

Thanks for reporting this. Which device and android build are you testing on please?

jbcolme commented 7 years ago

I'm using a Pixel, with Android 8 (build number OPR3.170623.007).

dturner commented 7 years ago

Internal issue id: 63918065 Fixed in: OPM1.170908.001

Thanks jbcolme.