mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
hosted: Shrink audiobuffer to (MEMORY_SIZE-1) megabytes
This represents a 256K increase from the former (MEMORYSIZE-0.75), and is necessary due to the growth in our binary sizes over the past decade or so. It is debatable if this is enough given that our actual memory usage is approximately (MEMORYSIZE+3) megabytes (plus runtime OS overhead) for the typical hosted build, but giving the host OS a bit more breathing room is warranted. Change-Id: I53e044585a32efd50a85e68d64fd21921eda01a3
This commit is contained in:
parent
161f8c0e24
commit
32d52e0415
2 changed files with 4 additions and 4 deletions
|
@ -30,9 +30,8 @@ extern unsigned char audiobufend[];
|
|||
#endif
|
||||
|
||||
#else /* PLATFORM_HOSTED */
|
||||
static unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024];
|
||||
static unsigned char audiobuffer[(MEMORYSIZE-1)*1024*1024];
|
||||
unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer);
|
||||
extern unsigned char *audiobufend;
|
||||
#endif
|
||||
|
||||
#ifdef BUFLIB_DEBUG_PRINT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue