USBD_Audio_Init

Description

Initialize internal structures, local global variables, Audio Processing module and OS layer used by the audio class.

Files

usbd_audio.h / usbd_audio.c

Prototype

void  USBD_Audio_Init (CPU_INT16U   msg_qty
                       USBD_ERR    *p_err);


Arguments

msg_qty

Maximum quantity of messages for playback and record tasks' queues.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_ALLOC                  
USBD_ERR_OS_INIT_FAIL

Returned Value

None.

Callers

Application.

Notes / Warnings

  1. The initialization function must be called only once by the application, and before calling any other audio class API.