diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/mp3_playback.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/export/mp3_playback.h b/firmware/export/mp3_playback.h index 6fdaa31cac..de27a2a46d 100644 --- a/firmware/export/mp3_playback.h +++ b/firmware/export/mp3_playback.h | |||
@@ -26,6 +26,9 @@ | |||
26 | 26 | ||
27 | #include <stdbool.h> | 27 | #include <stdbool.h> |
28 | 28 | ||
29 | /* callback fn */ | ||
30 | typedef void (*mp3_play_callback_t)(const void **start, size_t* size); | ||
31 | |||
29 | /* functions formerly in mpeg.c */ | 32 | /* functions formerly in mpeg.c */ |
30 | void mp3_init(int volume, int bass, int treble, int balance, int loudness, | 33 | void mp3_init(int volume, int bass, int treble, int balance, int loudness, |
31 | int avc, int channel_config, int stereo_width, | 34 | int avc, int channel_config, int stereo_width, |
@@ -42,9 +45,8 @@ void demand_irq_enable(bool on); | |||
42 | #if CONFIG_CODEC == MAS3587F | 45 | #if CONFIG_CODEC == MAS3587F |
43 | void mp3_play_init(void); | 46 | void mp3_play_init(void); |
44 | #endif | 47 | #endif |
45 | void mp3_play_data(const unsigned char* start, int size, | 48 | void mp3_play_data(const void* start, size_t size, |
46 | void (*get_more)(unsigned char** start, size_t* size) /* callback fn */ | 49 | mp3_play_callback_t get_more); |
47 | ); | ||
48 | void mp3_play_pause(bool play); | 50 | void mp3_play_pause(bool play); |
49 | bool mp3_pause_done(void); | 51 | bool mp3_pause_done(void); |
50 | void mp3_play_stop(void); | 52 | void mp3_play_stop(void); |