summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/test
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2012-05-06 12:22:09 +0200
committerNils Wallménius <nils@rockbox.org>2012-05-07 10:29:07 +0200
commit3f61caa0cd7e818416be08778f356efd54e596fb (patch)
tree9f0ca1be9d8cd4f0a2dcd8a3a7c20657925de21e /lib/rbcodec/test
parent51a73d81cda6136f901e8d56f4720dc28edf648a (diff)
downloadrockbox-3f61caa0cd7e818416be08778f356efd54e596fb.tar.gz
rockbox-3f61caa0cd7e818416be08778f356efd54e596fb.tar.bz2
rockbox-3f61caa0cd7e818416be08778f356efd54e596fb.zip
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>
Diffstat (limited to 'lib/rbcodec/test')
-rw-r--r--lib/rbcodec/test/SOURCES2
-rw-r--r--lib/rbcodec/test/warble.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/rbcodec/test/SOURCES b/lib/rbcodec/test/SOURCES
index 4c0d906dc5..a89af238ca 100644
--- a/lib/rbcodec/test/SOURCES
+++ b/lib/rbcodec/test/SOURCES
@@ -1,6 +1,4 @@
warble.c
-../../../firmware/buflib.c
-../../../firmware/core_alloc.c
../../../firmware/common/strlcpy.c
../../../firmware/common/unicode.c
../../../firmware/common/structec.c
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c
index ea8efcffca..d5bc1c5aea 100644
--- a/lib/rbcodec/test/warble.c
+++ b/lib/rbcodec/test/warble.c
@@ -33,7 +33,6 @@
#include <unistd.h>
#include "buffering.h" /* TYPE_PACKET_AUDIO */
#include "codecs.h"
-#include "core_alloc.h" /* core_allocator_init */
#include "dsp_core.h"
#include "metadata.h"
#include "settings.h"
@@ -851,7 +850,6 @@ int main(int argc, char **argv)
}
}
- core_allocator_init();
if (argc == optind + 2) {
write_init(argv[optind + 1]);
} else if (argc == optind + 1) {