summaryrefslogtreecommitdiff
path: root/audio/liveice/patches/patch-ag
blob: 41205d20e8f94b80c0390e125acaf57ffc56cd4c (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
$NetBSD: patch-ag,v 1.1.1.1 2000/11/21 06:01:49 hubertf Exp $

--- get_local_stream.c.orig	Tue Nov 21 04:03:45 2000
+++ get_local_stream.c
@@ -77,7 +77,11 @@
 #ifdef SOUNDCARD_SUPPORT
 	fprintf(stderr,"Initialising Soundcard\n");
 
+#ifdef __NetBSD__
+	if((g_conf.audio_fd=open("/dev/sound",O_RDWR))==-1)
+#else
 	if((g_conf.audio_fd=open("/dev/dsp",O_RDWR))==-1)
+#endif
 	        fatal("Failed to open sound device");
 
         /* see if the card can do full_duplex */
@@ -134,7 +138,11 @@
 #ifdef SOUNDCARD_SUPPORT
        write_message("Opening Soundcard",1);
         
+#ifdef __NetBSD__
+	if((g_conf.audio_fd=open("/dev/sound",flags))==-1)
+#else
 	if((g_conf.audio_fd=open("/dev/dsp",flags))==-1)
+#endif
 	        fatal("Failed to open sound device");
 	
         if(g_conf.full_duplex)