diff options
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/lib/codeclib.c | 10 | ||||
-rw-r--r-- | apps/codecs/lib/codeclib.h | 5 |
2 files changed, 5 insertions, 10 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c index 3a46f6d06b..e672a78cc2 100644 --- a/apps/codecs/lib/codeclib.c +++ b/apps/codecs/lib/codeclib.c | |||
@@ -27,11 +27,11 @@ | |||
27 | #include "codeclib.h" | 27 | #include "codeclib.h" |
28 | #include "metadata.h" | 28 | #include "metadata.h" |
29 | 29 | ||
30 | size_t mem_ptr; | 30 | /* The following variables are used by codec_malloc() to make use of free RAM |
31 | size_t bufsize; | 31 | * within the statically allocated codec buffer. */ |
32 | unsigned char* mp3buf; // The actual MP3 buffer from Rockbox | 32 | static size_t mem_ptr; |
33 | unsigned char* mallocbuf; // 512K from the start of MP3 buffer | 33 | static size_t bufsize; |
34 | unsigned char* filebuf; // The rest of the MP3 buffer | 34 | static unsigned char* mallocbuf; |
35 | 35 | ||
36 | int codec_init(void) | 36 | int codec_init(void) |
37 | { | 37 | { |
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index 30091c5333..d0f985b8e1 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h | |||
@@ -30,11 +30,6 @@ | |||
30 | #include "fft.h" | 30 | #include "fft.h" |
31 | 31 | ||
32 | extern struct codec_api *ci; | 32 | extern struct codec_api *ci; |
33 | extern size_t mem_ptr; | ||
34 | extern size_t bufsize; | ||
35 | extern unsigned char* mp3buf; /* The actual MP3 buffer from Rockbox */ | ||
36 | extern unsigned char* mallocbuf; /* The free space after the codec in the codec buffer */ | ||
37 | extern unsigned char* filebuf; /* The rest of the MP3 buffer */ | ||
38 | 33 | ||
39 | /* Standard library functions that are used by the codecs follow here */ | 34 | /* Standard library functions that are used by the codecs follow here */ |
40 | 35 | ||