N64FlashcartMenu
Loading...
Searching...
No Matches
mp3_player.h
Go to the documentation of this file.
1
7#ifndef MP3_PLAYER_H__
8#define MP3_PLAYER_H__
9
10
11#include <stdbool.h>
12
13
15typedef enum {
16 MP3PLAYER_OK,
17 MP3PLAYER_ERR_OUT_OF_MEM,
18 MP3PLAYER_ERR_IO,
19 MP3PLAYER_ERR_NO_FILE,
20 MP3PLAYER_ERR_INVALID_FILE,
22
23
24void mp3player_mixer_init (void);
25mp3player_err_t mp3player_init (void);
26void mp3player_deinit (void);
27mp3player_err_t mp3player_load (char *path);
28void mp3player_unload (void);
29mp3player_err_t mp3player_process (void);
30bool mp3player_is_playing (void);
31bool mp3player_is_finished (void);
32mp3player_err_t mp3player_play (void);
33void mp3player_stop (void);
34mp3player_err_t mp3player_toggle (void);
35void mp3player_mute (bool mute);
36mp3player_err_t mp3player_seek (int seconds);
37float mp3player_get_duration (void);
38float mp3player_get_bitrate (void);
39int mp3player_get_samplerate (void);
40float mp3player_get_progress (void);
41
42
43#endif
mp3player_err_t
MP3 file error enumeration.
Definition: mp3_player.h:15