blob: 808c6433038ec42e5144fb7642392d5f858c7dfd (
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
|
$NetBSD: patch-ab,v 1.2 2002/10/04 08:59:36 jlam Exp $
--- snd/audiooss.c.orig Wed Jun 5 00:51:19 2002
+++ snd/audiooss.c
@@ -16,7 +16,13 @@
#include <pthread.h>
#include <sys/ioctl.h>
+#if defined(HAVE_SYS_SOUNDCARD_H)
#include <sys/soundcard.h>
+#elif defined(HAVE_SOUNDCARD_H)
+#include <soundcard.h>
+#else
+#error "No OSS soundcard.h header found."
+#endif
#include <sys/time.h>
/* snd includes */
@@ -187,7 +193,7 @@ int audio_open(snd_type snd, long *flags
int channels;
int rate;
oss_info dp;
- const char *device = "/dev/dsp";
+ const char *device = DEV_DSP;
pthread_t thread;
snd->u.audio.descriptor = (oss_info) malloc(sizeof(oss_info_struct));
|