summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-13 12:14:11 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-13 12:14:11 +0000
commitef4a080da4179d016b50a26f1a7519db30c22ed2 (patch)
treed6c193bec24641130082600dfd4ea6b8c1ff46ba /apps
parent120016fd25a89925d16f4e62f195479a48b9dede (diff)
downloadrockbox-ef4a080da4179d016b50a26f1a7519db30c22ed2.zip
rockbox-ef4a080da4179d016b50a26f1a7519db30c22ed2.tar.gz
rockbox-ef4a080da4179d016b50a26f1a7519db30c22ed2.tar.bz2
rockbox-ef4a080da4179d016b50a26f1a7519db30c22ed2.tar.xz
SWCODEC/Voice: Just one more adjustment and all should be good again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12749 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 32f4a3b..0680c5f 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -3353,6 +3353,10 @@ static void audio_reset_buffer(size_t pcmbufsize)
logf("audio_reset_buffer");
logf(" size:%08X", pcmbufsize);
+ /* If the setup of anything allocated before the file buffer is
+ changed, do check the adjustments after the buffer_alloc call
+ as it will likely be affected and need sliding over */
+
/* Initially set up file buffer as all space available */
malloc_buf = audiobuf + talk_get_bufsize();
/* Align the malloc buf to line size. Especially important to cf
@@ -3390,6 +3394,7 @@ static void audio_reset_buffer(size_t pcmbufsize)
/* buffer_alloc moves audiobuf; this is safe because only the end
* has been touched so far in this function and the address of
* filebuf + filebuflen is not changed */
+ malloc_buf += CODEC_IRAM_SIZE;
filebuf += CODEC_IRAM_SIZE;
filebuflen -= CODEC_IRAM_SIZE;
}