summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-04-17 01:35:09 +0000
committerZakk Roberts <midk@rockbox.org>2006-04-17 01:35:09 +0000
commitcc8f80ad9bce251ca8f7a7d8161b165466d3a4eb (patch)
tree114e03469b18bb8f8ca4824d0f6b6c3791a7c8af
parent6f8af215b9dffa38752faa07f5f950b313a3e078 (diff)
downloadrockbox-cc8f80ad9bce251ca8f7a7d8161b165466d3a4eb.tar.gz
rockbox-cc8f80ad9bce251ca8f7a7d8161b165466d3a4eb.zip
Temporary fix for the high-pitched sounds on iPod: they should sound correct now, but the real problem (frequency adjustment) still needs fixing; this is merely a workaround.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9698 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/doom/i_sound.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/doom/i_sound.c b/apps/plugins/doom/i_sound.c
index 2d0ebe9262..7579ada5b5 100644
--- a/apps/plugins/doom/i_sound.c
+++ b/apps/plugins/doom/i_sound.c
@@ -55,7 +55,11 @@
#define BUFMUL 4
#define MIXBUFFERSIZE (SAMPLECOUNT*BUFMUL)
+#if (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD)
+#define SAMPLERATE 44100 // 44100 22050 11025
+#else
#define SAMPLERATE 11025 // 44100 22050 11025
+#endif
#define SAMPLESIZE 2 // 16bit
// The global mixing buffer.