diff options
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index b79ea49054..b75bfe65bd 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -672,7 +672,9 @@ static const struct plugin_api rockbox_api = { | |||
672 | appsversion, | 672 | appsversion, |
673 | /* new stuff at the end, sort into place next time | 673 | /* new stuff at the end, sort into place next time |
674 | the API gets incompatible */ | 674 | the API gets incompatible */ |
675 | #if (CONFIG_CODEC == SWCODEC) | ||
675 | pcmbuf_beep, | 676 | pcmbuf_beep, |
677 | #endif | ||
676 | }; | 678 | }; |
677 | 679 | ||
678 | int plugin_load(const char* plugin, const void* parameter) | 680 | int plugin_load(const char* plugin, const void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index de9984637f..129fd9b389 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -842,9 +842,11 @@ struct plugin_api { | |||
842 | /* new stuff at the end, sort into place next time | 842 | /* new stuff at the end, sort into place next time |
843 | the API gets incompatible */ | 843 | the API gets incompatible */ |
844 | 844 | ||
845 | #if (CONFIG_CODEC == SWCODEC) | ||
845 | void (*pcmbuf_beep)(unsigned int frequency, | 846 | void (*pcmbuf_beep)(unsigned int frequency, |
846 | size_t duration, | 847 | size_t duration, |
847 | int amplitude); | 848 | int amplitude); |
849 | #endif | ||
848 | }; | 850 | }; |
849 | 851 | ||
850 | /* plugin header */ | 852 | /* plugin header */ |