Группа :: Звук
Пакет: xmms
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: xmms-1.2-audio-patch
--- ./Output/OSS/audio.c.gege Tue Jun 13 11:50:02 2000
+++ ./Output/OSS/audio.c Tue Jun 13 11:52:57 2000
@@ -664,7 +664,7 @@
else
device_name = g_strdup(DEV_DSP);
}
- fd = open(device_name, O_WRONLY);
+ fd = open(device_name, O_WRONLY|O_NONBLOCK);
if (fd == -1)
{
g_warning("oss_open(): Failed to open audio device (%s): %s",
@@ -672,6 +672,7 @@
g_free(device_name);
return 0;
}
+ fcntl(fd, F_SETFL, fcntl(fd,F_GETFL) &~ O_NONBLOCK);
input.format.xmms = fmt;
input.frequency = rate;