mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-02 04:32:24 +00:00
Undo the horrible mistake of paying attention to 4Front's documentation.
This commit is contained in:
parent
c8ee33715b
commit
6569283738
1 changed files with 2 additions and 2 deletions
|
@ -84,13 +84,13 @@ SNDDMA_Init (void)
|
|||
snd_inited = 0;
|
||||
|
||||
// open /dev/dsp, confirm capability to mmap, and get size of dma buffer
|
||||
audio_fd = open ("/dev/dsp", O_WRONLY);
|
||||
audio_fd = open ("/dev/dsp", O_RDWR);
|
||||
if (audio_fd < 0) { // Failed open, retry up to 3 times
|
||||
// if it's busy
|
||||
while ((audio_fd < 0) && retries-- &&
|
||||
((errno == EAGAIN) || (errno == EBUSY))) {
|
||||
sleep (1);
|
||||
audio_fd = open ("/dev/dsp", O_WRONLY);
|
||||
audio_fd = open ("/dev/dsp", O_RDWR);
|
||||
}
|
||||
if (audio_fd < 0) {
|
||||
perror ("/dev/dsp");
|
||||
|
|
Loading…
Reference in a new issue