forked from len0rd/rockbox
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
This commit is contained in:
parent
534117d1e0
commit
d18a5cad7f
13 changed files with 39 additions and 32 deletions
|
@ -637,8 +637,8 @@ struct plugin_api {
|
|||
unsigned int band_setting);
|
||||
#endif /* AUDIOHW_HAVE_EQ */
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
void (*mp3_play_data)(const unsigned char* start, int size,
|
||||
void (*get_more)(unsigned char** start, size_t* size));
|
||||
void (*mp3_play_data)(const void* start, size_t size,
|
||||
mp3_play_callback_t get_more);
|
||||
void (*mp3_play_pause)(bool play);
|
||||
void (*mp3_play_stop)(void);
|
||||
bool (*mp3_is_playing)(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue