Demonstration functional description (STM324x9I-EVAL, STM324xG-EVAL, STM32F429I-Discov-
62/111
DocID026161 Rev 4
Functional description
The audio player initialization is done in startup step. In this step all the audio player states,
the speaker and the volume value are initialized and only when the play button in the audio
player interface is pressed to start the process.
There are two ways to start audio player module:
•
From main desktop menu as shown in
•
Through the file browser contextual menu: direct open feature.
Figure 53. Audio player module startup
When the audio player is started, the following actions are executed:
•
The graphical components are initialized:
–
The audio frame
–
The control buttons
–
The list box field
An additional memory is allocated to keep the audio list (pWavList) and the audio file
information (pFileInfo).
AUDIOPLAYER_ErrorTypdef
Contains the different possible error.
– AUDIOPLAYER_ERROR_NONE
– AUDIOPLAYER_ERROR_IO
– AUDIOPLAYER_ERROR_HW
– AUDIOPLAYER_ERROR_MEM
– AUDIOPLAYER_ERROR_FORMAT_NOTSUPPORTED
BUFFER_StateTypeDef
Contains the different Buffer state
– BUFFER_OFFSET_NONE
– BUFFER_OFFSET_HALF
– BUFFER_OFFSET_FULL.
Table 16. Data structure for audio (continued)
Structure
Description
069