mardi 26 juillet 2016

What does the read() function of AudioRecord read?

I'm writing an Android app, and I'm relying on processing the microphone signal. I'm getting the data with an AudioRecord object, on which I perform the read() function.

I am not exactly clear on the working of this function. Does it wait for the next BufferSize bytes and give them? Or does it just return the last BufferSize bytes from an internal buffer? I.e. if I call it twice in a short interval, will the data partially overlap?

Thank you!

Aucun commentaire:

Enregistrer un commentaire