summaryrefslogtreecommitdiff
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_codec.c')
-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) {
192} 192}
193 193
194/* Returns buffer to malloc array. Only codeclib should need this. */ 194/* Returns buffer to malloc array. Only codeclib should need this. */
195static void* get_codec_memory(size_t *size) 195static void* codec_get_buffer(size_t *size)
196{ 196{
197 DEBUGF("get_codec_memory(%d)\n",(int)size); 197 DEBUGF("codec_get_buffer(%d)\n",(int)size);
198 *size = 512*1024; 198 *size = CODEC_SIZE;
199 return codec_mallocbuf; 199 return codec_mallocbuf;
200} 200}
201 201
@@ -427,7 +427,7 @@ static void init_ci(void)
427{ 427{
428 /* --- Our "fake" implementations of the codec API functions. --- */ 428 /* --- Our "fake" implementations of the codec API functions. --- */
429 429
430 ci.get_codec_memory = get_codec_memory; 430 ci.codec_get_buffer = codec_get_buffer;
431 431
432 if (wavinfo.fd >= 0) { 432 if (wavinfo.fd >= 0) {
433 ci.pcmbuf_insert = pcmbuf_insert_wav; 433 ci.pcmbuf_insert = pcmbuf_insert_wav;
@@ -707,9 +707,9 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
707 } 707 }
708#endif 708#endif
709 709
710 codec_stack_copy = codec_mallocbuf + 512*1024; 710 codec_stack_copy = codec_mallocbuf + CODEC_SIZE;
711 audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size); 711 audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size);
712 audiosize -= 512*1024 + codec_stack_size; 712 audiosize -= CODEC_SIZE + codec_stack_size;
713 713
714#ifndef SIMULATOR 714#ifndef SIMULATOR
715 /* Backup the codec thread's stack */ 715 /* Backup the codec thread's stack */