I am working on an app in Android
with purely C/C++
and the app needs to record sound continuously and process the data synchronously, so I'm wondering when I use buffer-queue in the openSL to record sound, whether I can release the ones that are filled and en-queue new empty ones in the buffer-queue?
I have consider the solution to clear the whole buffer-queue when all the buffers are filled and re-en-queue the new ones by using callback, but I'm afraid that this process may take some time and I will lose the data during the time.