diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-04-05 14:22:40 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-05 14:22:40 +0000 |
commit | a482da36921add93663f920ab36143c95eef5f4a (patch) | |
tree | 5fa272a361a89310c08d28ef4c032ac75a413bd7 /apps | |
parent | 9613b91164d2c1331096c9c06f509fa52f196147 (diff) | |
download | rockbox-a482da36921add93663f920ab36143c95eef5f4a.tar.gz rockbox-a482da36921add93663f920ab36143c95eef5f4a.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/gwps-common.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ | |||
51 | #ifdef HAVE_LCD_COLOR | 51 | #ifdef HAVE_LCD_COLOR |
52 | #include "backdrop.h" | 52 | #include "backdrop.h" |
53 | #endif | 53 | #endif |
54 | #include "dsp.h" | ||
54 | 55 | ||
55 | #ifdef HAVE_LCD_CHARCELLS | 56 | #ifdef HAVE_LCD_CHARCELLS |
56 | static bool draw_player_progress(struct gui_wps *gwps); | 57 | static bool draw_player_progress(struct gui_wps *gwps); |
@@ -719,6 +720,19 @@ static char* get_tag(struct wps_data* wps_data, | |||
719 | 720 | ||
720 | } | 721 | } |
721 | break; | 722 | break; |
723 | |||
724 | #if (CONFIG_CODEC == SWCODEC) | ||
725 | case 's': /* Sound (DSP) Settings */ | ||
726 | switch (tag[1]) | ||
727 | { | ||
728 | case 'p': /* pitch */ | ||
729 | *intval = sound_get_pitch(); | ||
730 | snprintf(buf, buf_size, "%d.%d", | ||
731 | *intval / 10, *intval % 10); | ||
732 | return buf; | ||
733 | } | ||
734 | break; | ||
735 | #endif | ||
722 | 736 | ||
723 | case 'm': | 737 | case 'm': |
724 | switch (tag[1]) | 738 | switch (tag[1]) |