diff --git a/apps/plugins/lib/codeclib.c b/apps/plugins/lib/codeclib.c index d9866ef98d..9d9cc0b91b 100644 --- a/apps/plugins/lib/codeclib.c +++ b/apps/plugins/lib/codeclib.c @@ -22,6 +22,7 @@ #include "plugin.h" #include "playback.h" #include "codeclib.h" +#include "xxx2wav.h" struct plugin_api* local_rb; diff --git a/apps/plugins/lib/xxx2wav.c b/apps/plugins/lib/xxx2wav.c index ed67184a05..8eadfb815e 100644 --- a/apps/plugins/lib/xxx2wav.c +++ b/apps/plugins/lib/xxx2wav.c @@ -35,13 +35,13 @@ unsigned char* filebuf; // The rest of the audio buffer void* codec_malloc(size_t size) { void* x; - char s[32]; - static long last_tick = 0; x=&mallocbuf[mem_ptr]; mem_ptr+=(size+3)&~3; // Keep memory 32-bit aligned (if it was already?) /* if(TIME_AFTER(*(local_rb->current_tick), last_tick + HZ)) { + char s[32]; + static long last_tick = 0; local_rb->snprintf(s,30,"Memory used: %d",mem_ptr); local_rb->lcd_putsxy(0,80,s);