Request an audio buffer.
#include "asr/asrv.h"
int asrv_audio_acquire_buffer(char **buffer, int *bufflen, int *more_data)
The structure to store the audio sample.
The size of the buffer.
An flag to indicate whether more data is available.
The asrv_audio_acquire_buffer() function requests a buffer.
0 Capturing has finished. The buffer is available.
>0 Capturing is ongoing.
<0 An error ocurred.