Remove malloc_buf references from playback.c since it's no longer used for anything and align the codec slack space buffer that is now use as the malloc buffer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29533 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-03-06 02:03:37 +00:00
parent d5e1faa2d2
commit 7d2ab2df5f
2 changed files with 16 additions and 18 deletions

View file

@ -193,10 +193,15 @@ void codec_thread_do_callback(void (*fn)(void), unsigned int *id)
static void* codec_get_buffer(size_t *size)
{
if (codec_size >= CODEC_SIZE)
ssize_t s = CODEC_SIZE - codec_size;
void *buf = &codecbuf[codec_size];
ALIGN_BUFFER(buf, s, CACHEALIGN_SIZE);
if (s <= 0)
return NULL;
*size = CODEC_SIZE - codec_size;
return &codecbuf[codec_size];
*size = s;
return buf;
}
static void codec_pcmbuf_insert_callback(