About data size filled in the buffer
- by Bohan Lu
I need low-latency audio in my project, and I know Android 2.3 supports OpenSL ES. I have read documents and sample code and I decide to use Android simple buffer queue to do the play and record. I now try to write a simple application to do the test.
However, I have some questions about recording. If I set the recorder stop when it is recording, how do I know the exact number of bytes filled in the last buffer if it is not filled up ?
In 1.1 version, the callback function has some parameters about buffer and its filled data, but there is no such parameters in version 1.0.1.
Is there any way to get this information ?
Any suggestion would be greatly appreciated !