blob: 4759c3057bacaa86ea2536a6067fe4d79eb3f436 (
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
25
26
27
28
29
30
31
32
|
$NetBSD: patch-ae,v 1.2 1999/12/29 21:47:04 tron Exp $
--- sndserv/linux.c.orig Sun Jan 26 08:45:01 1997
+++ sndserv/linux.c Wed Dec 29 22:41:14 1999
@@ -39,11 +39,14 @@
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
+#include <sys/ioctl.h>
-#include <linux/soundcard.h>
+#include <soundcard.h>
#include "soundsrv.h"
+#define SOUND_DEV "/dev/sound"
+
int audio_fd;
void
@@ -76,9 +79,9 @@
int i;
- audio_fd = open("/dev/dsp", O_WRONLY);
+ audio_fd = open(SOUND_DEV, O_WRONLY);
if (audio_fd<0)
- fprintf(stderr, "Could not open /dev/dsp\n");
+ fprintf(stderr, "Could not open "SOUND_DEV"\n");
i = 11 | (2<<16);
|