$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)