blob: c7dd578fa924748e4d9a2aea0c28d5c7426b2c66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- snd.orig/snd-clm.c Thu Feb 12 15:37:13 1998
+++ snd-clm.c Sun Feb 22 02:20:40 1998
@@ -753,7 +753,11 @@
{
/* turn off inputs (they create an unbelievable amount of noise) and maximize outputs */
int fd,amp,devmask;
+#ifdef __NetBSD__
+ fd = open("/dev/audio",O_WRONLY,0);
+#else /* !__NetBSD__ */
fd = open("/dev/dsp",O_WRONLY,0);
+#endif /* __NetBSD__ */
if (fd == -1) return;
amp = 0;
ioctl(fd,SOUND_MIXER_READ_DEVMASK,&devmask);
|