Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: r29839: Move implementation of codec_get_buffer() to codec.c, make related variables static.

r29839: Move implementation of codec_get_buffer() to codec.c, make related variables static.

From: Thomas Martitz <thomas.martitz_at_student.htw-berlin.de>
Date: Mon, 09 May 2011 12:18:30 +0200

> +/* Returns pointer to and size of free codec RAM. Aligns to CACHEALIGN_SIZE. */
> +void *codeclib_get_buffer(size_t *size)
> +{
> + void *buf =&codecbuf[codec_size];
> + *size = CODEC_SIZE - codec_size;
> + ALIGN_BUFFER(buf, *size, CACHEALIGN_SIZE);
> +
> + if (*size<= 0)
> + return NULL;
> +
> + return buf;
> +}

I think codeclib_ isn't the right prefix. The codeclib is for use in
codecs and is linked into them. This however is a core function.

Best regards.
Received on 2011-05-09

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy