engine: client: allocate everything related to sounds in the sound pool

This commit is contained in:
Alibek Omarov
2025-01-22 13:48:13 +03:00
parent a5c88bdda9
commit cac6206984
5 changed files with 7 additions and 6 deletions

View File

@@ -184,7 +184,7 @@ qboolean SNDDMA_Init( void )
return false;
}
dma.buffer = Z_Malloc( samples * 2 ); //allocate pcm frame buffer
dma.buffer = Mem_Malloc( sndpool, samples * 2 ); //allocate pcm frame buffer
dma.samplepos = 0;
dma.samples = samples;
dma.format.width = 2;