blob: 475fb17d7a81acdbd129791dad40b6fce5d1ffcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-af,v 1.1.1.1 2001/05/19 13:02:23 drochner Exp $
--- xdao/SoundIF-linux.cc.orig Sat May 19 00:12:28 2001
+++ xdao/SoundIF-linux.cc Sat May 19 00:16:47 2001
@@ -34,7 +34,7 @@
*
*/
-#include <linux/soundcard.h>
+#include <soundcard.h>
#include <stdio.h>
#include <assert.h>
@@ -167,8 +167,8 @@
if (dspFd_ >= 0)
return 0; // already open
- if ((dspFd_ = open("/dev/dsp", O_WRONLY | O_NONBLOCK)) < 0) {
- message(-1, "Cannot open \"/dev/dsp\": %s", strerror(errno));
+ if ((dspFd_ = open("/dev/sound", O_WRONLY | O_NONBLOCK)) < 0) {
+ message(-1, "Cannot open \"/dev/sound\": %s", strerror(errno));
return 1;
}
|