From 4e14f2d6dd36066f8fa2bdcc20862a139d3d7a9e Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Wed, 22 Oct 2008 18:42:55 +0000 Subject: Fix test_codec plugin that was broken by r18834 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18862 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/test_codec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/plugins/test_codec.c') 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 */ -- cgit v1.2.3