forked from len0rd/rockbox
Get VU Meter plugin working on SWCODEC targets. Still needs to be scaled to fit better on larger displays. Also requires bumping the plugin API versions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8915 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
780e8dd0ef
commit
d108849812
3 changed files with 109 additions and 31 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "splash.h"
|
||||
#if (CONFIG_CODEC == SWCODEC)
|
||||
#include "pcm_playback.h"
|
||||
#include "dsp.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CHARGING
|
||||
|
@ -310,9 +311,8 @@ static const struct plugin_api rockbox_api = {
|
|||
#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
|
||||
mpeg_get_last_header,
|
||||
#endif
|
||||
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
||||
|
||||
sound_set_pitch,
|
||||
#endif
|
||||
|
||||
#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
|
||||
/* MAS communication */
|
||||
|
@ -407,6 +407,10 @@ static const struct plugin_api rockbox_api = {
|
|||
sim_lcd_ex_init,
|
||||
sim_lcd_ex_update_rect,
|
||||
#endif
|
||||
|
||||
#if (CONFIG_CODEC == SWCODEC)
|
||||
pcm_calculate_peaks,
|
||||
#endif
|
||||
};
|
||||
|
||||
int plugin_load(const char* plugin, void* parameter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue