USBD_Audio_RecordBufGet

Description

Get a buffer from an AudioStreaming interface pool.

Files

usbd_audio_processing.h / usbd_audio_processing.c

Prototype

void  *USBD_Audio_RecordBufGet (USBD_AUDIO_AS_HANDLE   as_handle,
                                CPU_INT16U            *p_buf_len);


Arguments

as_handle

AudioStreaming interface handle.

p_buf_len

Pointer to allocated buffer length (in bytes).

Returned Value

Pointer to record buffer, if NO error(s).

Null pointer, otherwise.

Callers

Audio Peripheral Driver.

Notes / Warnings

  1. Most of the time, this function will be called from an ISR context except when a record is started on the codec side with the function USBD_Audio_DrvStreamStart.