asra_acquire_buffer()

Request an audio buffer.

Synopsis:

#include "asr/asra.h"
 
int asra_acquire_buffer(asr_audio_info_t *info, int wait)

Arguments:

info

The structure to store the audio sample.

wait

An optional flag to indicate whether the module should wait for a successful audio sample.

Library:

libasr

Description:

The asra_acquire_buffer() function requests a buffer.

Returns:

0 Capturing has finished. The buffer is available.

>0 Capturing is ongoing.

<0 An error ocurred.