summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-10-22 18:42:55 +0000
committerNils Wallménius <nils@rockbox.org>2008-10-22 18:42:55 +0000
commit4e14f2d6dd36066f8fa2bdcc20862a139d3d7a9e (patch)
tree70ec84c2922670c42997f173a578af0d3a1434bb
parent9004289a147460c3d2542a5f4a90c412bba30c8b (diff)
downloadrockbox-4e14f2d6dd36066f8fa2bdcc20862a139d3d7a9e.tar.gz
rockbox-4e14f2d6dd36066f8fa2bdcc20862a139d3d7a9e.zip
Fix test_codec plugin that was broken by r18834
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18862 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/test_codec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 5eb9ad3988..448b512c83 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -192,10 +192,10 @@ void close_wav(void) {
}
/* Returns buffer to malloc array. Only codeclib should need this. */
-static void* get_codec_memory(size_t *size)
+static void* codec_get_buffer(size_t *size)
{
- DEBUGF("get_codec_memory(%d)\n",(int)size);
- *size = 512*1024;
+ DEBUGF("codec_get_buffer(%d)\n",(int)size);
+ *size = CODEC_SIZE;
return codec_mallocbuf;
}
@@ -427,7 +427,7 @@ static void init_ci(void)
{
/* --- Our "fake" implementations of the codec API functions. --- */
- ci.get_codec_memory = get_codec_memory;
+ ci.codec_get_buffer = codec_get_buffer;
if (wavinfo.fd >= 0) {
ci.pcmbuf_insert = pcmbuf_insert_wav;
@@ -707,9 +707,9 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
}
#endif
- codec_stack_copy = codec_mallocbuf + 512*1024;
+ codec_stack_copy = codec_mallocbuf + CODEC_SIZE;
audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size);
- audiosize -= 512*1024 + codec_stack_size;
+ audiosize -= CODEC_SIZE + codec_stack_size;
#ifndef SIMULATOR
/* Backup the codec thread's stack */