mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8891 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8ac3ae73c5
commit
8aa5bd11b2
2 changed files with 5 additions and 5 deletions
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
struct codec_api *local_rb;
|
struct codec_api *local_rb;
|
||||||
|
|
||||||
int mem_ptr;
|
long mem_ptr;
|
||||||
int bufsize;
|
long bufsize;
|
||||||
unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
|
unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
|
||||||
unsigned char* mallocbuf; // 512K from the start of MP3 buffer
|
unsigned char* mallocbuf; // 512K from the start of MP3 buffer
|
||||||
unsigned char* filebuf; // The rest of the MP3 buffer
|
unsigned char* filebuf; // The rest of the MP3 buffer
|
||||||
|
@ -56,7 +56,7 @@ void* codec_malloc(size_t size)
|
||||||
{
|
{
|
||||||
void* x;
|
void* x;
|
||||||
|
|
||||||
if (mem_ptr + (int)size > bufsize)
|
if (mem_ptr + (long)size > bufsize)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
x=&mallocbuf[mem_ptr];
|
x=&mallocbuf[mem_ptr];
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
|
|
||||||
#define MALLOC_BUFSIZE (512*1024)
|
#define MALLOC_BUFSIZE (512*1024)
|
||||||
|
|
||||||
extern int mem_ptr;
|
extern long mem_ptr;
|
||||||
extern int bufsize;
|
extern long bufsize;
|
||||||
extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
|
extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
|
||||||
extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer
|
extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer
|
||||||
extern unsigned char* filebuf; // The rest of the MP3 buffer
|
extern unsigned char* filebuf; // The rest of the MP3 buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue