summaryrefslogtreecommitdiff
path: root/apps/plugins/mp3_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mp3_encoder.c')
-rw-r--r--apps/plugins/mp3_encoder.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c
index 1de89bda97..b77058e97e 100644
--- a/apps/plugins/mp3_encoder.c
+++ b/apps/plugins/mp3_encoder.c
@@ -17,9 +17,7 @@
17PLUGIN_HEADER 17PLUGIN_HEADER
18PLUGIN_IRAM_DECLARE 18PLUGIN_IRAM_DECLARE
19 19
20static const struct plugin_api* rb; 20MEM_FUNCTION_WRAPPERS;
21
22MEM_FUNCTION_WRAPPERS(rb);
23 21
24#define SAMP_PER_FRAME 1152 22#define SAMP_PER_FRAME 1152
25#define SAMPL2 576 23#define SAMPL2 576
@@ -2496,7 +2494,7 @@ void get_mp3_filename(const char *wav_name)
2496#endif 2494#endif
2497#endif 2495#endif
2498 2496
2499enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 2497enum plugin_status plugin_start(const void* parameter)
2500{ 2498{
2501 int rat, srat, nrat; /* for rate selection */ 2499 int rat, srat, nrat; /* for rate selection */
2502 int cont = 1, butt; 2500 int cont = 1, butt;
@@ -2512,13 +2510,12 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
2512 if (parameter == NULL) 2510 if (parameter == NULL)
2513 return PLUGIN_ERROR; 2511 return PLUGIN_ERROR;
2514 2512
2515 PLUGIN_IRAM_INIT(api) 2513 PLUGIN_IRAM_INIT(rb)
2516 2514
2517#ifdef CPU_COLDFIRE 2515#ifdef CPU_COLDFIRE
2518 coldfire_set_macsr(0); /* integer mode */ 2516 coldfire_set_macsr(0); /* integer mode */
2519#endif 2517#endif
2520 2518
2521 rb = api;
2522 rb->lcd_setfont(FONT_SYSFIXED); 2519 rb->lcd_setfont(FONT_SYSFIXED);
2523 2520
2524#ifdef HAVE_ADJUSTABLE_CPU_FREQ 2521#ifdef HAVE_ADJUSTABLE_CPU_FREQ