Stephen Hocking reported a bug in the OSS sound code under FreeBSD. This

is the extremely long and complex (ie, single line) change to fix it.
This commit is contained in:
Joseph Carter 2000-04-26 16:41:12 +00:00
parent 5ce33303ac
commit a79a491b96

View file

@ -160,7 +160,8 @@ qboolean SNDDMA_Init(void)
// memory map the dma buffer // memory map the dma buffer
shm->buffer = (unsigned char *) mmap(NULL, info.fragstotal shm->buffer = (unsigned char *) mmap(NULL, info.fragstotal
* info.fragsize, PROT_WRITE, MAP_FILE|MAP_SHARED, audio_fd, 0); * info.fragsize, PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED,
audio_fd, 0);
if (shm->buffer == MAP_FAILED) if (shm->buffer == MAP_FAILED)
{ {