pkgsrc/audio/liveice/patches/patch-ag
hubertf 39db9bb39e Add liveice-0.20001121:
LiveIce is the source client for Icecast which encodes an mpeg
stream for broadcast as it is created. Unlike clients such as Shout
and IceDJ this permits the broadcast of live audio, rather than
prerecorded mp3's.

To start:
 0. start icecast
 1. find $HOME/mp3 -type f >playlist
 2. liveiceconfigure.tk, save
 3. In /bin/sh: liveice -M 2>/dev/null
2000-11-21 06:01:49 +00:00

28 lines
796 B
Text

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