From 1c97b22ca5ebd64b7b8cca5d528d77fb46f848e0 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 13 Mar 2007 10:17:59 +0000 Subject: [PATCH] SWCODEC: Fix a problem with voice in the menus caused by my error using the wrong pointer when aligning the codec malloc buffer. Probably the reason for FS#6803. Oy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12747 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/playback.c b/apps/playback.c index 0f69398600..32f4a3b43c 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -3357,7 +3357,7 @@ static void audio_reset_buffer(size_t pcmbufsize) malloc_buf = audiobuf + talk_get_bufsize(); /* Align the malloc buf to line size. Especially important to cf targets that do line reads/writes. */ - malloc_buf = (unsigned char *)(((uintptr_t)filebuf + 15) & ~15); + malloc_buf = (unsigned char *)(((uintptr_t)malloc_buf + 15) & ~15); filebuf = malloc_buf + MALLOC_BUFSIZE; filebuflen = audiobufend - filebuf;