diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2008-05-13 09:57:56 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2008-05-13 09:57:56 +0000 |
| commit | 652657781805d9cc10d744a49fb23eb17019fbbf (patch) | |
| tree | 2d1a6ae597a17531f726b57fd9f8cbaa2a46a07f /apps/plugins/mp3_encoder.c | |
| parent | a94e40d5153ab698fa8a1b6b57d91fcb6acc905e (diff) | |
| download | rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.zip rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.gz rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.bz2 rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.xz | |
Plugin parameters should be const.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
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 a344bdc..db9c9d4 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c @@ -16,7 +16,7 @@ PLUGIN_HEADER PLUGIN_IRAM_DECLARE -static struct plugin_api* rb; +static const struct plugin_api* rb; MEM_FUNCTION_WRAPPERS(rb); @@ -806,7 +806,7 @@ static const int win_const[18][4] = { { 134, -146,-3352,-3072 } }; -static char* wav_filename; +static const char* wav_filename; static int mp3file, wavfile, wav_size, frames; static uint32 enc_buffer[16384]; /* storage for 65536 Bytes */ static int enc_chunk = 0; /* encode chunk counter */ @@ -2278,7 +2278,7 @@ void compress(void) int num_file; char mp3_name[80]; -void get_mp3_filename(char *wav_name) +void get_mp3_filename(const char *wav_name) { int slen = rb->strlen(wav_name); rb->strncpy(mp3_name, wav_name, 79); @@ -2353,7 +2353,7 @@ void get_mp3_filename(char *wav_name) #endif #endif -enum plugin_status plugin_start(struct plugin_api* api, void* parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { int rat, srat, nrat; /* for rate selection */ int cont = 1, butt; |