mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
don't block if the sound device is busy (from Grievre)
This commit is contained in:
parent
710a6c9e2d
commit
17db1f42f2
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ try_open (int rw)
|
||||||
mmmode |= PROT_READ;
|
mmmode |= PROT_READ;
|
||||||
mmflags |= MAP_SHARED;
|
mmflags |= MAP_SHARED;
|
||||||
}
|
}
|
||||||
|
omode |= O_NONBLOCK;
|
||||||
|
|
||||||
audio_fd = open (snd_dev, omode);
|
audio_fd = open (snd_dev, omode);
|
||||||
if (audio_fd < 0) { // Failed open, retry up to 3 times
|
if (audio_fd < 0) { // Failed open, retry up to 3 times
|
||||||
|
|
Loading…
Reference in a new issue