+/* 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.

Reply via email to