diff options
| author | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-21 00:24:31 +0000 |
|---|---|---|
| committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-21 00:24:31 +0000 |
| commit | 9bc622603c600f31bbc4fdf4ec43cbcc37f42a75 (patch) | |
| tree | d8d8a19d84f08d1d09e605e7f53df7d1e51771b5 | |
| parent | 671235eeb2c036332d0c89cd17cacbf2c0df8d5f (diff) | |
| download | rockbox-9bc622603c600f31bbc4fdf4ec43cbcc37f42a75.zip rockbox-9bc622603c600f31bbc4fdf4ec43cbcc37f42a75.tar.gz rockbox-9bc622603c600f31bbc4fdf4ec43cbcc37f42a75.tar.bz2 rockbox-9bc622603c600f31bbc4fdf4ec43cbcc37f42a75.tar.xz | |
oops.
teaches me *again* to *not* commit code even if it looks entirely correct without testing archos builds :/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6220 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/plugin.c | 4 | ||||
| -rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index a3c8685..84d030e 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -44,7 +44,9 @@ #include "mp3data.h" #include "powermgmt.h" #include "system.h" +#if (CONFIG_HWCODEC == MASNONE) #include "pcm_playback.h" +#endif #ifdef HAVE_LCD_BITMAP #include "peakmeter.h" @@ -269,9 +271,11 @@ static const struct plugin_api rockbox_api = { #if CONFIG_KEYPAD == IRIVER_H100_PAD button_hold, #endif +#if (CONFIG_HWCODEC == MASNONE) pcm_play_data, pcm_play_stop, pcm_is_playing, +#endif }; int plugin_load(const char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 496a69a..88b9953 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -317,10 +317,12 @@ struct plugin_api { #if CONFIG_KEYPAD == IRIVER_H100_PAD bool (*button_hold)(void); #endif +#if (CONFIG_HWCODEC == MASNONE) 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); +#endif }; /* defined by the plugin loader (plugin.c) */ |