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:
Solomon Peachy 2025-09-12 23:00:14 -04:00
parent 161f8c0e24
commit 32d52e0415
2 changed files with 4 additions and 4 deletions

View file

@ -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