From fecac647d8024c34810386511128070f2d66e004 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 29 Oct 2009 17:16:31 +0000 Subject: Only expose pcmbuf_beep on SWCODEC targets (aka fix red). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23406 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 ++ apps/plugin.h | 2 ++ 2 files changed, 4 insertions(+) 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 = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ +#if (CONFIG_CODEC == SWCODEC) pcmbuf_beep, +#endif }; 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 { /* new stuff at the end, sort into place next time the API gets incompatible */ +#if (CONFIG_CODEC == SWCODEC) void (*pcmbuf_beep)(unsigned int frequency, size_t duration, int amplitude); +#endif }; /* plugin header */ -- cgit v1.2.3