MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SND_setup

Function SND_setup

code/client/snd_dma.cpp:5065–5074  ·  view source on GitHub ↗

called once-only in EXE lifetime...

Source from the content-addressed store, hash-verified

5063// called once-only in EXE lifetime...
5064//
5065void SND_setup()
5066{
5067 s_soundpoolmegs = Cvar_Get("s_soundpoolmegs", "25", CVAR_ARCHIVE);
5068 if (Sys_LowPhysicalMemory() )
5069 {
5070 Cvar_Set("s_soundpoolmegs", "0");
5071 }
5072
5073// Com_Printf("Sound memory manager started\n");
5074}
5075
5076
5077// ask how much mem an sfx has allocated...

Callers 1

S_BeginRegistrationFunction · 0.70

Calls 3

Cvar_GetFunction · 0.50
Sys_LowPhysicalMemoryFunction · 0.50
Cvar_SetFunction · 0.50

Tested by

no test coverage detected