Closed endragor closed 4 years ago
Hmm... It seems, this method unsupported in that context. Can you give code sample?
I don't have a sample right now, but it occurred when invoking get_frames_written
on the stream within data callback.
Interestingly, I'm having a similar problem with AAudio directly - trying to invoke AAudioStream_getTimestamp
on a stream provided by AAudio in the callback results in Pure virtual function called!
error. Although it should work according to the AAudio docs.
I double checked oboe's programming guide, it seems any stream.get*()
methods is ok in that context.
It seems this was a problem in an application where I was testing these things. It called std::process::exit(0), which is not instantaneous on Android. That resulted in weird behavior, including this symptom.
Here is a trace example:
I assume this happens because getFramesWritten/getFramesRead are not parts of the wrapper code, like
getFramesPerBurst
. As a side note, it would be nice to integrategetTimestamp
along with fixing this issue, as it also requires dealing with the wrapper code.