summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c7
-rw-r--r--apps/plugin.h12
2 files changed, 6 insertions, 13 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 62f9dd7558..18c49f4c27 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -588,6 +588,8 @@ static const struct plugin_api rockbox_api = {
588 mixer_channel_set_amplitude, 588 mixer_channel_set_amplitude,
589 mixer_channel_get_bytes_waiting, 589 mixer_channel_get_bytes_waiting,
590 mixer_channel_set_buffer_hook, 590 mixer_channel_set_buffer_hook,
591 mixer_set_frequency,
592 mixer_get_frequency,
591 593
592 system_sound_play, 594 system_sound_play,
593 keyclick_click, 595 keyclick_click,
@@ -797,11 +799,6 @@ static const struct plugin_api rockbox_api = {
797 799
798 /* new stuff at the end, sort into place next time 800 /* new stuff at the end, sort into place next time
799 the API gets incompatible */ 801 the API gets incompatible */
800
801#if CONFIG_CODEC == SWCODEC
802 mixer_set_frequency,
803 mixer_get_frequency,
804#endif
805}; 802};
806 803
807int plugin_load(const char* plugin, const void* parameter) 804int plugin_load(const char* plugin, const void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 15f7e96946..af673b3afe 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -156,12 +156,12 @@ void* plugin_get_buffer(size_t *buffer_size);
156#define PLUGIN_MAGIC 0x526F634B /* RocK */ 156#define PLUGIN_MAGIC 0x526F634B /* RocK */
157 157
158/* increase this every time the api struct changes */ 158/* increase this every time the api struct changes */
159#define PLUGIN_API_VERSION 224 159#define PLUGIN_API_VERSION 225
160 160
161/* update this to latest version if a change to the api struct breaks 161/* update this to latest version if a change to the api struct breaks
162 backwards compatibility (and please take the opportunity to sort in any 162 backwards compatibility (and please take the opportunity to sort in any
163 new function which are "waiting" at the end of the function table) */ 163 new function which are "waiting" at the end of the function table) */
164#define PLUGIN_MIN_API_VERSION 223 164#define PLUGIN_MIN_API_VERSION 225
165 165
166/* plugin return codes */ 166/* plugin return codes */
167/* internal returns start at 0x100 to make exit(1..255) work */ 167/* internal returns start at 0x100 to make exit(1..255) work */
@@ -716,7 +716,8 @@ struct plugin_api {
716 size_t (*mixer_channel_get_bytes_waiting)(enum pcm_mixer_channel channel); 716 size_t (*mixer_channel_get_bytes_waiting)(enum pcm_mixer_channel channel);
717 void (*mixer_channel_set_buffer_hook)(enum pcm_mixer_channel channel, 717 void (*mixer_channel_set_buffer_hook)(enum pcm_mixer_channel channel,
718 chan_buffer_hook_fn_type fn); 718 chan_buffer_hook_fn_type fn);
719 719 void (*mixer_set_frequency)(unsigned int samplerate);
720 unsigned int (*mixer_get_frequency)(void);
720 void (*system_sound_play)(enum system_sound sound); 721 void (*system_sound_play)(enum system_sound sound);
721 void (*keyclick_click)(bool rawbutton, int action); 722 void (*keyclick_click)(bool rawbutton, int action);
722#endif /* CONFIG_CODEC == SWCODC */ 723#endif /* CONFIG_CODEC == SWCODC */
@@ -970,11 +971,6 @@ struct plugin_api {
970 971
971 /* new stuff at the end, sort into place next time 972 /* new stuff at the end, sort into place next time
972 the API gets incompatible */ 973 the API gets incompatible */
973
974#if CONFIG_CODEC == SWCODEC
975 void (*mixer_set_frequency)(unsigned int samplerate);
976 unsigned int (*mixer_get_frequency)(void);
977#endif
978}; 974};
979 975
980/* plugin header */ 976/* plugin header */