diff options
Diffstat (limited to 'apps/plugins/mp3_encoder.c')
-rw-r--r-- | apps/plugins/mp3_encoder.c | 8 |
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 @@ | |||
16 | PLUGIN_HEADER | 16 | PLUGIN_HEADER |
17 | PLUGIN_IRAM_DECLARE | 17 | PLUGIN_IRAM_DECLARE |
18 | 18 | ||
19 | static struct plugin_api* rb; | 19 | static const struct plugin_api* rb; |
20 | 20 | ||
21 | MEM_FUNCTION_WRAPPERS(rb); | 21 | MEM_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 | ||
809 | static char* wav_filename; | 809 | static const char* wav_filename; |
810 | static int mp3file, wavfile, wav_size, frames; | 810 | static int mp3file, wavfile, wav_size, frames; |
811 | static uint32 enc_buffer[16384]; /* storage for 65536 Bytes */ | 811 | static uint32 enc_buffer[16384]; /* storage for 65536 Bytes */ |
812 | static int enc_chunk = 0; /* encode chunk counter */ | 812 | static int enc_chunk = 0; /* encode chunk counter */ |
@@ -2278,7 +2278,7 @@ void compress(void) | |||
2278 | int num_file; | 2278 | int num_file; |
2279 | char mp3_name[80]; | 2279 | char mp3_name[80]; |
2280 | 2280 | ||
2281 | void get_mp3_filename(char *wav_name) | 2281 | void 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 | ||
2356 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 2356 | enum 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; |