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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c
index a344bdc7dc..db9c9d4e67 100644
--- a/apps/plugins/mp3_encoder.c
+++ b/apps/plugins/mp3_encoder.c
@@ -16,7 +16,7 @@
16PLUGIN_HEADER 16PLUGIN_HEADER
17PLUGIN_IRAM_DECLARE 17PLUGIN_IRAM_DECLARE
18 18
19static struct plugin_api* rb; 19static const struct plugin_api* rb;
20 20
21MEM_FUNCTION_WRAPPERS(rb); 21MEM_FUNCTION_WRAPPERS(rb);
22 22
@@ -806,7 +806,7 @@ static const int win_const[18][4] = {
806 { 134, -146,-3352,-3072 } }; 806 { 134, -146,-3352,-3072 } };
807 807
808 808
809static char* wav_filename; 809static const char* wav_filename;
810static int mp3file, wavfile, wav_size, frames; 810static int mp3file, wavfile, wav_size, frames;
811static uint32 enc_buffer[16384]; /* storage for 65536 Bytes */ 811static uint32 enc_buffer[16384]; /* storage for 65536 Bytes */
812static int enc_chunk = 0; /* encode chunk counter */ 812static int enc_chunk = 0; /* encode chunk counter */
@@ -2278,7 +2278,7 @@ void compress(void)
2278int num_file; 2278int num_file;
2279char mp3_name[80]; 2279char mp3_name[80];
2280 2280
2281void get_mp3_filename(char *wav_name) 2281void get_mp3_filename(const char *wav_name)
2282{ 2282{
2283 int slen = rb->strlen(wav_name); 2283 int slen = rb->strlen(wav_name);
2284 rb->strncpy(mp3_name, wav_name, 79); 2284 rb->strncpy(mp3_name, wav_name, 79);
@@ -2353,7 +2353,7 @@ void get_mp3_filename(char *wav_name)
2353#endif 2353#endif
2354#endif 2354#endif
2355 2355
2356enum plugin_status plugin_start(struct plugin_api* api, void* parameter) 2356enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
2357{ 2357{
2358 int rat, srat, nrat; /* for rate selection */ 2358 int rat, srat, nrat; /* for rate selection */
2359 int cont = 1, butt; 2359 int cont = 1, butt;