>       Anyone done this yet?  If not, here's problem # 1

Yep. I've included a patch at the end of this message. I don't really use
sound on my machine, so this patch just makes it compile. I don't know
whether it works or not.

It would be nice for these changes to get folded back into the source, but
not until a real fix is done which uses configure. I might get
around to this eventually.

Also, does anyone know the correct constant to use for NAME_MAX? I think 
almost every system has MAXPATHLEN defined, but I'm not sure. Probably 
configure can take care of that one as well.

Index: audio.c
===================================================================
RCS file: /usr/home/cvs/enlightenment/esound/audio.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 audio.c
--- audio.c     1998/05/19 12:22:32     1.1.1.1
+++ audio.c     1998/05/19 12:26:50
@@ -1,6 +1,6 @@
 #include "esd.h"
 
-#include <sys/soundcard.h>
+#include <machine/soundcard.h>
 
 /*******************************************************************/
 /* globals */
@@ -29,12 +29,13 @@
        perror(device);
        return( -1 );  
     }
-
+#if 0
     /* TODO: check that this is allowable */
     /* set for full duplex operation, if recording */
     if ( (esd_audio_format & ESD_MASK_FUNC) == ESD_RECORD ) {
        ioctl( afd, SNDCTL_DSP_SETDUPLEX, 0 );
     }
+#endif /* 0 */
 
     /* set the sound driver fragment size and number */
     /* fragment = max_buffers << 16 + log2(buffer_size), (256 16) */

Index: esdlib.c
===================================================================
RCS file: /usr/home/cvs/enlightenment/esound/esdlib.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 esdlib.c
--- esdlib.c    1998/05/19 12:22:32     1.1.1.1
+++ esdlib.c    1998/05/19 12:26:20
@@ -12,7 +12,7 @@
 int esd_send_auth( int socket )
 {
     int auth_fd = -1, i = 0;
-    char auth_filename[NAME_MAX+1] = "", auth_key[ESD_KEY_LEN];
+    char auth_filename[FILENAME_MAX+1] = "", auth_key[ESD_KEY_LEN];
     char *home = NULL;
     char tumbler = '\0';
 

-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop

Reply via email to