From a482da36921add93663f920ab36143c95eef5f4a Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Wed, 5 Apr 2006 14:22:40 +0000 Subject: [PATCH] Inspired by patch 4784 by Dominik, add pitch to WPS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9517 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index ca366a92af..944e2592b1 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -51,6 +51,7 @@ #ifdef HAVE_LCD_COLOR #include "backdrop.h" #endif +#include "dsp.h" #ifdef HAVE_LCD_CHARCELLS static bool draw_player_progress(struct gui_wps *gwps); @@ -719,6 +720,19 @@ static char* get_tag(struct wps_data* wps_data, } break; + +#if (CONFIG_CODEC == SWCODEC) + case 's': /* Sound (DSP) Settings */ + switch (tag[1]) + { + case 'p': /* pitch */ + *intval = sound_get_pitch(); + snprintf(buf, buf_size, "%d.%d", + *intval / 10, *intval % 10); + return buf; + } + break; +#endif case 'm': switch (tag[1])