diff options
Diffstat (limited to 'apps')
-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 a3c868514b..84d030e1de 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -44,7 +44,9 @@ | |||
44 | #include "mp3data.h" | 44 | #include "mp3data.h" |
45 | #include "powermgmt.h" | 45 | #include "powermgmt.h" |
46 | #include "system.h" | 46 | #include "system.h" |
47 | #if (CONFIG_HWCODEC == MASNONE) | ||
47 | #include "pcm_playback.h" | 48 | #include "pcm_playback.h" |
49 | #endif | ||
48 | 50 | ||
49 | #ifdef HAVE_LCD_BITMAP | 51 | #ifdef HAVE_LCD_BITMAP |
50 | #include "peakmeter.h" | 52 | #include "peakmeter.h" |
@@ -269,9 +271,11 @@ static const struct plugin_api rockbox_api = { | |||
269 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 271 | #if CONFIG_KEYPAD == IRIVER_H100_PAD |
270 | button_hold, | 272 | button_hold, |
271 | #endif | 273 | #endif |
274 | #if (CONFIG_HWCODEC == MASNONE) | ||
272 | pcm_play_data, | 275 | pcm_play_data, |
273 | pcm_play_stop, | 276 | pcm_play_stop, |
274 | pcm_is_playing, | 277 | pcm_is_playing, |
278 | #endif | ||
275 | }; | 279 | }; |
276 | 280 | ||
277 | int plugin_load(const char* plugin, void* parameter) | 281 | int plugin_load(const char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index 496a69a01e..88b9953913 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -317,10 +317,12 @@ struct plugin_api { | |||
317 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 317 | #if CONFIG_KEYPAD == IRIVER_H100_PAD |
318 | bool (*button_hold)(void); | 318 | bool (*button_hold)(void); |
319 | #endif | 319 | #endif |
320 | #if (CONFIG_HWCODEC == MASNONE) | ||
320 | void (*pcm_play_data)(const unsigned char *start, int size, | 321 | void (*pcm_play_data)(const unsigned char *start, int size, |
321 | void (*get_more)(unsigned char** start, long*size)); | 322 | void (*get_more)(unsigned char** start, long*size)); |
322 | void (*pcm_play_stop)(void); | 323 | void (*pcm_play_stop)(void); |
323 | bool (*pcm_is_playing)(void); | 324 | bool (*pcm_is_playing)(void); |
325 | #endif | ||
324 | }; | 326 | }; |
325 | 327 | ||
326 | /* defined by the plugin loader (plugin.c) */ | 328 | /* defined by the plugin loader (plugin.c) */ |