diff options
author | Dan Everton <dan@iocaine.org> | 2006-03-05 19:34:54 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-03-05 19:34:54 +0000 |
commit | d108849812280eb69b5a00bd1f79193237b2e51a (patch) | |
tree | d6210424ace3a29aca8a75f27a87b5df0be6fcff /apps/plugin.c | |
parent | 780e8dd0ef9b4325b35c0b680447488455d4e44f (diff) |
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
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 4f6b6e91d7..c26d06dd07 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -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) |