summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-09-30 06:46:19 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-09-30 06:46:19 +0000
commit11cbffa584e4a0de2f026c1b852459a4c51d0d8b (patch)
tree4f899dd2b2ecf0f7d4442e566a79cc8be3a9fbaf
parent27a6d519f01c6d2e3ddbdccc69ec17edf111faa0 (diff)
downloadrockbox-11cbffa584e4a0de2f026c1b852459a4c51d0d8b.tar.gz
rockbox-11cbffa584e4a0de2f026c1b852459a4c51d0d8b.zip
Do a bandaid fix for the moment to address FS#12250 : Playback freezes when using speed or pitch change. Task should remain open for now since this is just a brute force buffer increase rather than (re)endowing the DSP with the expected behavior.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30621 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/pcmbuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 928f6035da..8135a30a36 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -45,7 +45,9 @@
Can be any number of samples but power of two sizes make for faster and
smaller math - must be < 65536 bytes */
#define PCMBUF_CHUNK_SIZE 8192u
-#define PCMBUF_GUARD_SIZE 1024u
+
+/* Massive size is a nasty temp fix */
+#define PCMBUF_GUARD_SIZE (1024u*12*((NATIVE_FREQUENCY+7999)/8000))
/* Mnemonics for common data commit thresholds */
#define COMMIT_CHUNKS PCMBUF_CHUNK_SIZE