Subject: pkg/6423: esound-2.4 doesn't work with current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 11/10/1998 21:46:28
>Number:         6423
>Category:       pkg
>Synopsis:       esound-2.4 doesn't work with current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 10 12:50:01 1998
>Last-Modified:
>Originator:     Thilo Manske
>Organization:
	Ich bin nicht organisiert!
>Release:        NetBSD-current
>Environment:
	
System: NetBSD WintelKiller 1.3H NetBSD 1.3H (WintelKiller) #59: Mon Nov 9 18:34:01 MET 1998 thilo@WintelKiller:/usr/src/sys/arch/i386/compile/WintelKiller i386


>Description:
esound will not work because:
1) it tries to open /dev/dsp - we call it /dev/sound
2) it connects to 0.0.0.0 for localhost instead of 127.0.0.1 
>How-To-Repeat:
Try running test-script (in ../work/esound) on current
>Fix:
I hope the following patch will do the trick:
(BTW: you still get wrong port#s in error messages)

--- audio_oss.c.orig    Sat Jul 18 04:51:16 1998
+++ audio_oss.c Tue Nov 10 21:15:47 1998
@@ -11,7 +11,7 @@
 #define ARCH_esd_audio_open
 int esd_audio_open()
 {
-    const char *device = "/dev/dsp";
+    const char *device = "/dev/sound";
 
     int afd = -1, value = 0, test = 0;
     int mode = O_WRONLY;
--- esd.c.orig  Sat Jul 18 04:51:16 1998
+++ esd.c       Tue Nov 10 21:15:47 1998
@@ -187,7 +187,7 @@
     audio = esd_audio_open();
     if ( audio < 0 ) {
        fprintf( stderr, "fatal error configuring sound, %s\n", 
-                "/dev/dsp" );
+                "/dev/sound" );
        exit( 1 );          
     }
 
--- esdlib.c.orig       Sat Jul 18 04:51:16 1998
+++ esdlib.c    Tue Nov 10 21:15:48 1998
@@ -158,7 +158,7 @@
        my copy of /usr/include/netinet/in.h (instead of 64)
     */
 
-    char default_host[] = "0.0.0.0";
+    char default_host[] = "127.0.0.1";
     char connect_host[64];
     int port = ESD_DEFAULT_PORT;
     int host_div = 0;
>Audit-Trail:
>Unformatted: