Fix test_codec plugin that was broken by r18834
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18862 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9004289a14
commit
4e14f2d6dd
1 changed files with 6 additions and 6 deletions
|
@ -192,10 +192,10 @@ void close_wav(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns buffer to malloc array. Only codeclib should need this. */
|
/* 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);
|
DEBUGF("codec_get_buffer(%d)\n",(int)size);
|
||||||
*size = 512*1024;
|
*size = CODEC_SIZE;
|
||||||
return codec_mallocbuf;
|
return codec_mallocbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ static void init_ci(void)
|
||||||
{
|
{
|
||||||
/* --- Our "fake" implementations of the codec API functions. --- */
|
/* --- 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) {
|
if (wavinfo.fd >= 0) {
|
||||||
ci.pcmbuf_insert = pcmbuf_insert_wav;
|
ci.pcmbuf_insert = pcmbuf_insert_wav;
|
||||||
|
@ -707,9 +707,9 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
codec_stack_copy = codec_mallocbuf + 512*1024;
|
codec_stack_copy = codec_mallocbuf + CODEC_SIZE;
|
||||||
audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size);
|
audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size);
|
||||||
audiosize -= 512*1024 + codec_stack_size;
|
audiosize -= CODEC_SIZE + codec_stack_size;
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
/* Backup the codec thread's stack */
|
/* Backup the codec thread's stack */
|
||||||
|
|
Loading…
Reference in a new issue