From 91ff99c2adc6787c75346c882435657db3949c60 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 5 Jul 2013 22:54:02 -0400 Subject: ...and mixer_set/get_frequency is SWCODEC only! :-) Change-Id: I6badf687ef330abf79f2e1a809d8b2f93ba4e911 --- apps/plugin.c | 2 ++ apps/plugin.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/plugin.c b/apps/plugin.c index a5cdfc3d8a..658064c53e 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -798,8 +798,10 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ +#if CONFIG_CODEC == SWCODEC mixer_set_frequency, mixer_get_frequency, +#endif }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index f926b3428d..874b9b4a56 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -970,8 +970,10 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ +#if CONFIG_CODEC == SWCODEC void (*mixer_set_frequency)(unsigned int samplerate); unsigned int (*mixer_get_frequency)(void); +#endif }; /* plugin header */ -- cgit v1.2.3