N64FlashcartMenu
|
MP3 Player. More...
Go to the source code of this file.
Enumerations | |
enum | mp3player_err_t { MP3PLAYER_OK , MP3PLAYER_ERR_OUT_OF_MEM , MP3PLAYER_ERR_IO , MP3PLAYER_ERR_NO_FILE , MP3PLAYER_ERR_INVALID_FILE } |
MP3 file error enumeration. More... | |
Functions | |
void | mp3player_mixer_init (void) |
Initialize the MP3 player mixer. | |
mp3player_err_t | mp3player_init (void) |
Initialize the MP3 player. | |
void | mp3player_deinit (void) |
Deinitialize the MP3 player. | |
mp3player_err_t | mp3player_load (char *path) |
Load an MP3 file. | |
void | mp3player_unload (void) |
Unload the current MP3 file. | |
mp3player_err_t | mp3player_process (void) |
Process the MP3 player. | |
bool | mp3player_is_playing (void) |
Check if the MP3 player is playing. | |
bool | mp3player_is_finished (void) |
Check if the MP3 player has finished playing. | |
mp3player_err_t | mp3player_play (void) |
Start playback of the MP3 file. | |
void | mp3player_stop (void) |
Stop playback of the MP3 file. | |
mp3player_err_t | mp3player_toggle (void) |
Toggle playback of the MP3 file. | |
void | mp3player_mute (bool mute) |
Mute or unmute the MP3 player. | |
mp3player_err_t | mp3player_seek (int seconds) |
Seek to a specific position in the MP3 file. | |
float | mp3player_get_duration (void) |
Get the duration of the MP3 file. | |
float | mp3player_get_bitrate (void) |
Get the bitrate of the MP3 file. | |
int | mp3player_get_samplerate (void) |
Get the sample rate of the MP3 file. | |
float | mp3player_get_progress (void) |
Get the current playback progress. | |
MP3 Player.
enum mp3player_err_t |
MP3 file error enumeration.
Enumeration for different types of errors that can occur in the MP3 player.
void mp3player_mixer_init | ( | void | ) |
Initialize the MP3 player mixer.
This function initializes the mixer for the MP3 player.
mp3player_err_t mp3player_init | ( | void | ) |
Initialize the MP3 player.
This function initializes the MP3 player and prepares it for playback.
void mp3player_deinit | ( | void | ) |
Deinitialize the MP3 player.
This function deinitializes the MP3 player and releases any resources.
mp3player_err_t mp3player_load | ( | char * | path | ) |
Load an MP3 file.
This function loads an MP3 file from the specified path.
path | Path to the MP3 file. |
void mp3player_unload | ( | void | ) |
Unload the current MP3 file.
This function unloads the currently loaded MP3 file.
mp3player_err_t mp3player_process | ( | void | ) |
Process the MP3 player.
This function processes the MP3 player, handling playback and other operations.
bool mp3player_is_playing | ( | void | ) |
Check if the MP3 player is playing.
This function checks if the MP3 player is currently playing.
bool mp3player_is_finished | ( | void | ) |
Check if the MP3 player has finished playing.
This function checks if the MP3 player has finished playing the current file.
mp3player_err_t mp3player_play | ( | void | ) |
Start playback of the MP3 file.
This function starts playback of the currently loaded MP3 file.
void mp3player_stop | ( | void | ) |
Stop playback of the MP3 file.
This function stops playback of the currently loaded MP3 file.
mp3player_err_t mp3player_toggle | ( | void | ) |
Toggle playback of the MP3 file.
This function toggles playback of the currently loaded MP3 file.
void mp3player_mute | ( | bool | mute | ) |
Mute or unmute the MP3 player.
This function mutes or unmutes the MP3 player.
mute | true to mute, false to unmute. |
mp3player_err_t mp3player_seek | ( | int | seconds | ) |
Seek to a specific position in the MP3 file.
This function seeks to a specific position in the currently loaded MP3 file.
seconds | Number of seconds to seek. |
float mp3player_get_duration | ( | void | ) |
Get the duration of the MP3 file.
This function gets the duration of the currently loaded MP3 file.
float mp3player_get_bitrate | ( | void | ) |
Get the bitrate of the MP3 file.
This function gets the bitrate of the currently loaded MP3 file.
int mp3player_get_samplerate | ( | void | ) |
Get the sample rate of the MP3 file.
This function gets the sample rate of the currently loaded MP3 file.
float mp3player_get_progress | ( | void | ) |
Get the current playback progress.
This function gets the current playback progress of the MP3 file.