1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2007-03-13 10:17:59 +00:00
parent caf2c61079
commit 1c97b22ca5

View file

@ -3357,7 +3357,7 @@ static void audio_reset_buffer(size_t pcmbufsize)
malloc_buf = audiobuf + talk_get_bufsize(); malloc_buf = audiobuf + talk_get_bufsize();
/* Align the malloc buf to line size. Especially important to cf /* Align the malloc buf to line size. Especially important to cf
targets that do line reads/writes. */ 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; filebuf = malloc_buf + MALLOC_BUFSIZE;
filebuflen = audiobufend - filebuf; filebuflen = audiobufend - filebuf;