Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / liveice / patches / patch-ag
blobfe200f943db2128333dc0956186ffdfab1a70a07
1 $NetBSD$
3 --- get_local_stream.c.orig     Tue Nov 21 04:03:45 2000
4 +++ get_local_stream.c
5 @@ -77,7 +77,11 @@
6  #ifdef SOUNDCARD_SUPPORT
7         fprintf(stderr,"Initialising Soundcard\n");
8  
9 +#ifdef __NetBSD__
10 +       if((g_conf.audio_fd=open("/dev/sound",O_RDWR))==-1)
11 +#else
12         if((g_conf.audio_fd=open("/dev/dsp",O_RDWR))==-1)
13 +#endif
14                 fatal("Failed to open sound device");
16          /* see if the card can do full_duplex */
17 @@ -134,7 +138,11 @@
18  #ifdef SOUNDCARD_SUPPORT
19         write_message("Opening Soundcard",1);
20          
21 +#ifdef __NetBSD__
22 +       if((g_conf.audio_fd=open("/dev/sound",flags))==-1)
23 +#else
24         if((g_conf.audio_fd=open("/dev/dsp",flags))==-1)
25 +#endif
26                 fatal("Failed to open sound device");
27         
28          if(g_conf.full_duplex)