summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/mp3_playback.h2
-rw-r--r--firmware/mp3_playback.c6
-rw-r--r--firmware/mpeg.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/firmware/export/mp3_playback.h b/firmware/export/mp3_playback.h
index 772eafe971..d766608aec 100644
--- a/firmware/export/mp3_playback.h
+++ b/firmware/export/mp3_playback.h
@@ -39,7 +39,7 @@ void demand_irq_enable(bool on);
39/* new functions, exported to plugin API */ 39/* new functions, exported to plugin API */
40void mp3_play_init(void); 40void mp3_play_init(void);
41void mp3_play_data(const unsigned char* start, int size, 41void mp3_play_data(const unsigned char* start, int size,
42 void (*get_more)(unsigned char** start, int* size) /* callback fn */ 42 void (*get_more)(unsigned char** start, size_t* size) /* callback fn */
43); 43);
44void mp3_play_pause(bool play); 44void mp3_play_pause(bool play);
45bool mp3_pause_done(void); 45bool mp3_pause_done(void);
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c
index 68fa96d619..c5c747ac2c 100644
--- a/firmware/mp3_playback.c
+++ b/firmware/mp3_playback.c
@@ -61,7 +61,7 @@ static long playstart_tick;
61static long cumulative_ticks; 61static long cumulative_ticks;
62 62
63/* the registered callback function to ask for more mp3 data */ 63/* the registered callback function to ask for more mp3 data */
64static void (*callback_for_more)(unsigned char**, int*); 64static void (*callback_for_more)(unsigned char**, size_t*);
65#endif /* #ifndef SIMULATOR */ 65#endif /* #ifndef SIMULATOR */
66 66
67/* list of tracks in memory */ 67/* list of tracks in memory */
@@ -167,7 +167,7 @@ void DEI3(void) __attribute__((interrupt_handler));
167void DEI3(void) 167void DEI3(void)
168{ 168{
169 unsigned char* start; 169 unsigned char* start;
170 int size = 0; 170 size_t size = 0;
171 171
172 if (callback_for_more != NULL) 172 if (callback_for_more != NULL)
173 { 173 {
@@ -502,7 +502,7 @@ void mp3_play_init(void)
502} 502}
503 503
504void mp3_play_data(const unsigned char* start, int size, 504void mp3_play_data(const unsigned char* start, int size,
505 void (*get_more)(unsigned char** start, int* size) /* callback fn */ 505 void (*get_more)(unsigned char** start, size_t* size) /* callback fn */
506) 506)
507{ 507{
508 /* init DMA */ 508 /* init DMA */
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index a66a4d0f01..0299d4d557 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -810,7 +810,7 @@ static void reset_mp3_buffer(void)
810} 810}
811 811
812 /* DMA transfer end interrupt callback */ 812 /* DMA transfer end interrupt callback */
813static void transfer_end(unsigned char** ppbuf, int* psize) 813static void transfer_end(unsigned char** ppbuf, size_t* psize)
814{ 814{
815 if(playing && !paused) 815 if(playing && !paused)
816 { 816 {