AN706-00040-2v0-E
55
7.2.4 API Specifications
This chapter gives I
2
S driver API used for audio playback processing in addition to API
used for application layer. I
2
S driver API is also described in the application notes for simple
AV system solution. For more information, see the notes.
7.2.4.1 Audio Playback API
Function
void AUDIO_Init(void)
Overview
Audio playback processing initialization function
Invoked before entering the main loop (see
”).
Argument None
Return
value
None
Function
AUDIO_STAGE_ENUM AUDIO_GetAudioStage(void)
Overview
Audio playback processing status acquisition function
Parameter None
Return
value
Audio playback processing status
AUDIO_STAGE_INIT
After completion of initialization
AUDIO_STAGE_OPEN
Audio data file open
AUDIO_STAGE_LIBRARY_INIT Decoder library initialization
AUDIO_STAGE_ANALYZE
Audio data file decode
AUDIO_STAGE_READ
Audio data file read
AUDIO_STAGE_DECODING
Audio data decode
AUDIO_STAGE_UPSAMPLE
Decode data up-sampling
AUDIO_STAGE_STOP
Decode stop
Function
uint8_t AUDIO_SetAudioStage(AUDIO_STAGE_ENUM Stage)
Overview
Audio playback processing status setting function
Parameter Audio playback processing status
The following status setting only for application.
AUDIO_STAGE_OPEN
Audio data file open
AUDIO_STAGE_STOP
Decode stop
Return
value
Processing results
AUDIO_RET_OK
Normal completion
AUDIO_RET_INVALID_PARAMETER
Parameter error