From d108849812280eb69b5a00bd1f79193237b2e51a Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Sun, 5 Mar 2006 19:34:54 +0000 Subject: 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 --- apps/plugin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/plugin.c') 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) -- cgit v1.2.3