googlearchive / android-audio-high-performance

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

framePosition and timeNanoseconds in AAudioStream_getTimestamp may be wrong after a flush #88

Closed jbcolme closed 6 years ago

jbcolme commented 6 years ago

After a flush call or sometimes even starting, sometimes the framePosition in AAudioStream_getTimestamp is incredibly high. Just once. Something like this:

index 218103808 time 517344981968 index 6533952 time 1596390933440 index 6533952 time 1596394953596 index 6533952 time 1596398961930 index 6534000 time 1596402961566 index 6534192 time 1596406967087 index 6534384 time 1596410975004 index 6534576 time 1596414965994 index 6534768 time 1596418961307

I'm using a nexus 5X with build number OPP5.170921.005

It doesn't happens always.