mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
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:
parent
5ce33303ac
commit
a79a491b96
1 changed files with 2 additions and 1 deletions
|
@ -160,7 +160,8 @@ qboolean SNDDMA_Init(void)
|
|||
// memory map the dma buffer
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue