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 a5cdfc3d8a..658064c53e 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -798,8 +798,10 @@ static const struct plugin_api rockbox_api = { | |||
798 | /* new stuff at the end, sort into place next time | 798 | /* new stuff at the end, sort into place next time |
799 | the API gets incompatible */ | 799 | the API gets incompatible */ |
800 | 800 | ||
801 | #if CONFIG_CODEC == SWCODEC | ||
801 | mixer_set_frequency, | 802 | mixer_set_frequency, |
802 | mixer_get_frequency, | 803 | mixer_get_frequency, |
804 | #endif | ||
803 | }; | 805 | }; |
804 | 806 | ||
805 | int plugin_load(const char* plugin, const void* parameter) | 807 | 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 { | |||
970 | /* new stuff at the end, sort into place next time | 970 | /* new stuff at the end, sort into place next time |
971 | the API gets incompatible */ | 971 | the API gets incompatible */ |
972 | 972 | ||
973 | #if CONFIG_CODEC == SWCODEC | ||
973 | void (*mixer_set_frequency)(unsigned int samplerate); | 974 | void (*mixer_set_frequency)(unsigned int samplerate); |
974 | unsigned int (*mixer_get_frequency)(void); | 975 | unsigned int (*mixer_get_frequency)(void); |
976 | #endif | ||
975 | }; | 977 | }; |
976 | 978 | ||
977 | /* plugin header */ | 979 | /* plugin header */ |