Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: Sound effects for SGI IRIX



On Thu, Feb 11, 1999 at 02:53:32PM +0000, Paul Mikell wrote:
> Add -DNEW_SOUND to CFLAGS and -lm -laudio to SND_LIBS in the client Makefile,
> then apply the following changes to cfsndserv.c:

I'd been trying to this also, but I haven't used SGI's audiolib, so my
implementation was a hack :( 
I haven't tried this patch yet, but I did for my own version a
configure.in patch, so the #define SGI_SOUND isn't needed. So just
apply the following patch, run autoconf and configure should work for
sgi sounds also.
---------------------------cut here----------------------------
--- configure.in.orig   Fri Jan 29 12:09:38 1999
+++ configure.in        Fri Feb 12 11:04:10 1999
@@ -122,12 +122,18 @@
 LDFLAGS="$LDFLAGS $XPMLIB"
 
 AC_CHECK_LIB(asound, main, alsa_sound=yes, , -lm)
+AC_CHECK_LIB(audio, alNewConfig, sgi_sound=yes, )
  AC_CHECK_HEADER(sys/soundcard.h, oss_sound=yes, oss_sound=no)
 
 if eval "test x$alsa_sound = xyes"; then
        echo "Using ALSA sound system"
        CFLAGS="$CFLAGS -DALSA_SOUND"
        SND_LIBS="-lasound -lm"
+else 
+    if eval "test x$sgi_sound = xyes"; then
+       echo "Using SGI sound system"
+       CFLAGS="$CFLAGS -DSGI_SOUND"
+       SND_LIBS="-laudio"
 else
     if eval "test x$oss_sound = xyes"; then
        echo "Using OSS sound system"
@@ -137,6 +143,7 @@
        echo "No suitable sound system found - using old sound system"
        new_sound=no
     fi
+  fi
 fi
 
 if eval "test x$new_sound = xyes"; then
---------------------------cut here----------------------------
-- 
BSc. Pertti Karppinen <pjka@iki.fi>                   |'Bridge Players |
Systems Designer, University of Jyvaskyla, Finland    |      Do        |
http://www.iki.fi/~pjka/ | Office  : +358 14 602 088  |      It        |
HAM: OH6KTR QTH: KP22UF  | Cellular: +358 40 564 0786 | on the Table'  |
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]