The WAV Player API provides functions for playing the waveform audio file format(*.wav).
Required Header
#include <wav_player.h>
Overview
The WAV Player API allows you to simply play and stop a wav file. To play a certain wav file, call wav_player_start_new() with a path to the .wav file. When playing a wav file is finished, wav_player_playback_completed_cb() will be invoked.
Typedef Documentation
Called when a WAV file has finished playing.
This callback is not invoked by calling wav_player_stop().
- Since :
- 2.3
- Parameters:
-
[in] | id | The completed wav player ID |
[in] | user_data | The user data passed from the callback registration function |
- See also:
- wav_player_start_new()
Enumeration Type Documentation
Enumeration of error codes for WAV player.
- Since :
- 2.3
- Enumerator:
WAV_PLAYER_ERROR_NONE |
Successful
|
WAV_PLAYER_ERROR_INVALID_PARAMETER |
Invalid parameter
|
WAV_PLAYER_ERROR_INVALID_OPERATION |
Invalid operation
|
WAV_PLAYER_ERROR_FORMAT_NOT_SUPPORTED |
Format not supported
|
WAV_PLAYER_ERROR_NOT_SUPPORTED_TYPE |
Not supported (Since 3.0)
|
Function Documentation
Stops playing the WAV file.
- Since :
- 2.3
- Parameters:
-
[in] | id | The WAV player ID to stop |
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- wav_player_start_new()