forked from len0rd/rockbox
Added new pcm playback api to the plugin api
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6217 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3b8dcf5ebb
commit
457e138fff
2 changed files with 9 additions and 2 deletions
|
@ -44,6 +44,7 @@
|
||||||
#include "mp3data.h"
|
#include "mp3data.h"
|
||||||
#include "powermgmt.h"
|
#include "powermgmt.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
#include "pcm_playback.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
#include "peakmeter.h"
|
#include "peakmeter.h"
|
||||||
|
@ -268,7 +269,9 @@ static const struct plugin_api rockbox_api = {
|
||||||
#if CONFIG_KEYPAD == IRIVER_H100_PAD
|
#if CONFIG_KEYPAD == IRIVER_H100_PAD
|
||||||
button_hold,
|
button_hold,
|
||||||
#endif
|
#endif
|
||||||
|
pcm_play_data,
|
||||||
|
pcm_play_stop,
|
||||||
|
pcm_is_playing,
|
||||||
};
|
};
|
||||||
|
|
||||||
int plugin_load(const char* plugin, void* parameter)
|
int plugin_load(const char* plugin, void* parameter)
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* increase this every time the api struct changes */
|
/* increase this every time the api struct changes */
|
||||||
#define PLUGIN_API_VERSION 36
|
#define PLUGIN_API_VERSION 37
|
||||||
|
|
||||||
/* update this to latest version if a change to the api struct breaks
|
/* update this to latest version if a change to the api struct breaks
|
||||||
backwards compatibility (and please take the opportunity to sort in any
|
backwards compatibility (and please take the opportunity to sort in any
|
||||||
|
@ -317,6 +317,10 @@ struct plugin_api {
|
||||||
#if CONFIG_KEYPAD == IRIVER_H100_PAD
|
#if CONFIG_KEYPAD == IRIVER_H100_PAD
|
||||||
bool (*button_hold)(void);
|
bool (*button_hold)(void);
|
||||||
#endif
|
#endif
|
||||||
|
void (*pcm_play_data)(const unsigned char *start, int size,
|
||||||
|
void (*get_more)(unsigned char** start, long*size));
|
||||||
|
void (*pcm_play_stop)(void);
|
||||||
|
bool (*pcm_is_playing)(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* defined by the plugin loader (plugin.c) */
|
/* defined by the plugin loader (plugin.c) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue