diff options
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index ed4588d..df23ed1 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -346,9 +346,11 @@ struct plugin_api { void (*pcm_set_frequency)(unsigned int frequency); bool (*pcm_is_playing)(void); void (*pcm_play_pause)(bool play); - void (*pcm_calculate_peaks)(int *left, int *right); #endif #endif /* !SIMULATOR */ +#if CONFIG_CODEC == SWCODEC + void (*pcm_calculate_peaks)(int *left, int *right); +#endif /* playback control */ void (*PREFIX(audio_play))(long offset); |