mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
- taniwha's munmap patch
This commit is contained in:
parent
925a3c1e98
commit
b02711f1a5
1 changed files with 2 additions and 1 deletions
|
@ -524,9 +524,10 @@ void SNDDMA_Shutdown(void) {
|
||||||
free(dma.buffer);
|
free(dma.buffer);
|
||||||
dma.buffer = 0L;
|
dma.buffer = 0L;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
munmap (dma.buffer, dma.samples *dma.samplebits / 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: use munmap() ? */
|
|
||||||
close(audio_fd);
|
close(audio_fd);
|
||||||
audio_fd = -1;
|
audio_fd = -1;
|
||||||
snd_inited = 0;
|
snd_inited = 0;
|
||||||
|
|
Loading…
Reference in a new issue