A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

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

+4 -4
+1 -2
firmware/core_alloc.c
··· 30 30 #endif 31 31 32 32 #else /* PLATFORM_HOSTED */ 33 - static unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024]; 33 + static unsigned char audiobuffer[(MEMORYSIZE-1)*1024*1024]; 34 34 unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer); 35 - extern unsigned char *audiobufend; 36 35 #endif 37 36 38 37 #ifdef BUFLIB_DEBUG_PRINT
+3 -2
tools/configure
··· 1816 1816 # modelname: short model name used all over to identify this target 1817 1817 # memory: number of megabytes of RAM this target has. If the amount can 1818 1818 # be selected by the size prompt, let memory be unset here 1819 - # Note that for hsoted/application builds, this is the size 1820 - # reserved for the audio buffer, not the total RAM size. 1819 + # Note for hosted/application builds, (memory-1) defines the 1820 + # audiobuffer size; actual memory usage will likely be 1821 + # larger and is found in rockbox-info.txt after compilation. 1821 1822 # target: -Ddefine passed to the build commands to make the correct 1822 1823 # config-*.h file get included etc 1823 1824 # tool: the tool that takes a plain binary and converts that into a