rbcodec: abstract tdspeed buffer allocation

Move code dealing with rockbox specific buflib allocations into a
rockbox specific file and implement buffer allocation with
malloc/free for warble/stand alone lib.
Based on patch by Sean Bartell.

Change-Id: I8cb85dad5890fbd34c1bb26abbb89c0b0f6b55cf
Reviewed-on: http://gerrit.rockbox.org/144
Tested-by: Nils Wallménius <nils@rockbox.org>
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Reviewed-by: Nils Wallménius <nils@rockbox.org>
This commit is contained in:
Nils Wallménius 2012-05-06 12:22:09 +02:00
parent 51a73d81cd
commit 3f61caa0cd
8 changed files with 173 additions and 110 deletions

View file

@ -31,5 +31,9 @@
#include "dsp-util.h"
#define HAVE_CLIP_SAMPLE_16
#endif
bool tdspeed_alloc_buffers(int32_t **buffers, const int *buf_s, int nbuf);
void tdspeed_free_buffers(int32_t **buffers, int nbuf);
#endif