asrv_audio_acquire_buffer()

Request an audio buffer.

Synopsis:

#include "asr/asrv.h"
 
int asrv_audio_acquire_buffer(char **buffer, int *bufflen, int *more_data)

Arguments:

buffer

The structure to store the audio sample.

bufflen

The size of the buffer.

more_data

An flag to indicate whether more data is available.

Library:

libasr

Description:

The asrv_audio_acquire_buffer() function requests a buffer.

Returns:

0 Capturing has finished. The buffer is available.

>0 Capturing is ongoing.

<0 An error ocurred.