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) | |
download | rockbox-d108849812280eb69b5a00bd1f79193237b2e51a.tar.gz rockbox-d108849812280eb69b5a00bd1f79193237b2e51a.zip |
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 @@ | |||
52 | #include "splash.h" | 52 | #include "splash.h" |
53 | #if (CONFIG_CODEC == SWCODEC) | 53 | #if (CONFIG_CODEC == SWCODEC) |
54 | #include "pcm_playback.h" | 54 | #include "pcm_playback.h" |
55 | #include "dsp.h" | ||
55 | #endif | 56 | #endif |
56 | 57 | ||
57 | #ifdef HAVE_CHARGING | 58 | #ifdef HAVE_CHARGING |
@@ -310,9 +311,8 @@ static const struct plugin_api rockbox_api = { | |||
310 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | 311 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
311 | mpeg_get_last_header, | 312 | mpeg_get_last_header, |
312 | #endif | 313 | #endif |
313 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | 314 | |
314 | sound_set_pitch, | 315 | sound_set_pitch, |
315 | #endif | ||
316 | 316 | ||
317 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | 317 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
318 | /* MAS communication */ | 318 | /* MAS communication */ |
@@ -407,6 +407,10 @@ static const struct plugin_api rockbox_api = { | |||
407 | sim_lcd_ex_init, | 407 | sim_lcd_ex_init, |
408 | sim_lcd_ex_update_rect, | 408 | sim_lcd_ex_update_rect, |
409 | #endif | 409 | #endif |
410 | |||
411 | #if (CONFIG_CODEC == SWCODEC) | ||
412 | pcm_calculate_peaks, | ||
413 | #endif | ||
410 | }; | 414 | }; |
411 | 415 | ||
412 | int plugin_load(const char* plugin, void* parameter) | 416 | int plugin_load(const char* plugin, void* parameter) |