summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugin.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 63097a2589..e7758df51c 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -292,9 +292,11 @@ static const struct plugin_api rockbox_api = {
292 pcm_set_frequency, 292 pcm_set_frequency,
293 pcm_is_playing, 293 pcm_is_playing,
294 pcm_play_pause, 294 pcm_play_pause,
295 pcm_calculate_peaks,
296#endif 295#endif
297#endif 296#endif
297#if CONFIG_CODEC == SWCODEC
298 pcm_calculate_peaks,
299#endif
298 300
299 /* playback control */ 301 /* playback control */
300 PREFIX(audio_play), 302 PREFIX(audio_play),
diff --git a/apps/plugin.h b/apps/plugin.h
index ed4588d906..df23ed1c00 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -346,9 +346,11 @@ struct plugin_api {
346 void (*pcm_set_frequency)(unsigned int frequency); 346 void (*pcm_set_frequency)(unsigned int frequency);
347 bool (*pcm_is_playing)(void); 347 bool (*pcm_is_playing)(void);
348 void (*pcm_play_pause)(bool play); 348 void (*pcm_play_pause)(bool play);
349 void (*pcm_calculate_peaks)(int *left, int *right);
350#endif 349#endif
351#endif /* !SIMULATOR */ 350#endif /* !SIMULATOR */
351#if CONFIG_CODEC == SWCODEC
352 void (*pcm_calculate_peaks)(int *left, int *right);
353#endif
352 354
353 /* playback control */ 355 /* playback control */
354 void (*PREFIX(audio_play))(long offset); 356 void (*PREFIX(audio_play))(long offset);