forked from len0rd/rockbox
...and mixer_set/get_frequency is SWCODEC only! :-)
Change-Id: I6badf687ef330abf79f2e1a809d8b2f93ba4e911
This commit is contained in:
parent
74f90bdb18
commit
91ff99c2ad
2 changed files with 4 additions and 0 deletions
|
|
@ -798,8 +798,10 @@ static const struct plugin_api rockbox_api = {
|
||||||
/* new stuff at the end, sort into place next time
|
/* new stuff at the end, sort into place next time
|
||||||
the API gets incompatible */
|
the API gets incompatible */
|
||||||
|
|
||||||
|
#if CONFIG_CODEC == SWCODEC
|
||||||
mixer_set_frequency,
|
mixer_set_frequency,
|
||||||
mixer_get_frequency,
|
mixer_get_frequency,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
int plugin_load(const char* plugin, const void* parameter)
|
int plugin_load(const char* plugin, const void* parameter)
|
||||||
|
|
|
||||||
|
|
@ -970,8 +970,10 @@ struct plugin_api {
|
||||||
/* new stuff at the end, sort into place next time
|
/* new stuff at the end, sort into place next time
|
||||||
the API gets incompatible */
|
the API gets incompatible */
|
||||||
|
|
||||||
|
#if CONFIG_CODEC == SWCODEC
|
||||||
void (*mixer_set_frequency)(unsigned int samplerate);
|
void (*mixer_set_frequency)(unsigned int samplerate);
|
||||||
unsigned int (*mixer_get_frequency)(void);
|
unsigned int (*mixer_get_frequency)(void);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* plugin header */
|
/* plugin header */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue