diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-03-04 14:44:43 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-03-04 14:50:47 -0500 |
commit | d18a5cad7f002b2f67385e57118048ea3db185a6 (patch) | |
tree | 61b8eafcf9d0197a8bc1f6c795c775f9170a4f64 /uisimulator | |
parent | 534117d1e0d01b78d0ab9040e64fbd88213cd805 (diff) | |
download | rockbox-d18a5cad7f002b2f67385e57118048ea3db185a6.tar.gz rockbox-d18a5cad7f002b2f67385e57118048ea3db185a6.zip |
Tweak paramters of mp3_play_data and callback.
Use generic void * and size_t and make mp3_play_data and its callback
agree on types. Use mp3_play_callback_t instead of prototyping
right in the function call (so it's not so messy to look at). Change
doesn't appear to require plugin API version increment.
Change-Id: Idcab2740ee316a2beb6e0a87b8f4934d9d6b3dd8
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/stubs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 2a81587d83..1404c1e21b 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -36,6 +36,8 @@ | |||
36 | static bool storage_spinning = false; | 36 | static bool storage_spinning = false; |
37 | 37 | ||
38 | #if CONFIG_CODEC != SWCODEC | 38 | #if CONFIG_CODEC != SWCODEC |
39 | #include "mp3_playback.h" | ||
40 | |||
39 | void audio_set_buffer_margin(int seconds) | 41 | void audio_set_buffer_margin(int seconds) |
40 | { | 42 | { |
41 | (void)seconds; | 43 | (void)seconds; |
@@ -92,9 +94,8 @@ unsigned char* mp3_get_pos(void) | |||
92 | return NULL; | 94 | return NULL; |
93 | } | 95 | } |
94 | 96 | ||
95 | void mp3_play_data(const unsigned char* start, int size, | 97 | void mp3_play_data(const void* start, size_t size, |
96 | void (*get_more)(unsigned char** start, size_t* size) /* callback fn */ | 98 | mp3_play_callback_t get_more) |
97 | ) | ||
98 | { | 99 | { |
99 | (void)start; (void)size; (void)get_more; | 100 | (void)start; (void)size; (void)get_more; |
100 | } | 101 | } |