- taniwha's munmap patch

This commit is contained in:
Jamie Wilkinson 2002-04-13 02:01:07 +00:00
parent 925a3c1e98
commit b02711f1a5

View file

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