If I enqueue a buffer for recording into the buffer queue - is there a way of knowing when that buffer was actually filled, so I can use it ?
Likewise, is there a way of knowing when a buffer was played?
For context: I'm tinkering with the NDK example called "native-audio". It uses the SLAndroidSimpleBufferQueueItf for playing, and comments that, for stream recording, which I want to do, such a queue should also be used. Now I'm wondering, since from what I remember reading somewhere, it's not guaranteed that a buffer has been filled upon the next call of the recording callback (or played in the playing callback, for that matter) - how would one know when a buffer has been used? There surely must be some way, since otherwise all this would be a bit useless? ^^