# HG changeset patch # User Sam Lantinga # Date 1046931161 0 # Node ID 6399f4e90211681ac00010e1acbe38370f918185 # Parent 31d3af76488b4dccc4818f0bdd96e278e26cb1d4 IRIX patches from Andrea Suatoni diff -r 31d3af76488b -r 6399f4e90211 configure.in --- a/configure.in Thu Mar 06 06:02:16 2003 +0000 +++ b/configure.in Thu Mar 06 06:12:41 2003 +0000 @@ -415,14 +415,22 @@ have_nas=no if test -r /usr/X11R6/include/audio/audiolib.h; then have_nas=yes - fi - AC_MSG_RESULT($have_nas) - if test x$have_nas = xyes; then CFLAGS="$CFLAGS -DNAS_SUPPORT" SYSTEM_LIBS="$SYSTEM_LIBS -laudio -lXt" AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas" AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la" + + dnl On IRIX, the NAS includes are in a different directory, + dnl and libnas must be explicitly linked in + + elif test -r /usr/freeware/include/nas/audiolib.h; then + have_nas=yes + CFLAGS="$CFLAGS -DNAS_SUPPORT" + SYSTEM_LIBS="$SYSTEM_LIBS -lnas -lXt" + AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas" + AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la" fi + AC_MSG_RESULT($have_nas) fi } diff -r 31d3af76488b -r 6399f4e90211 src/audio/dmedia/SDL_irixaudio.c --- a/src/audio/dmedia/SDL_irixaudio.c Thu Mar 06 06:02:16 2003 +0000 +++ b/src/audio/dmedia/SDL_irixaudio.c Thu Mar 06 06:12:41 2003 +0000 @@ -129,7 +129,7 @@ mixbuf = NULL; } if ( audio_port != NULL ) { - ALcloseport(audio_port); + alClosePort(audio_port); audio_port = NULL; } } @@ -180,7 +180,7 @@ (alSetWidth(audio_config, width) >= 0) && (alSetQueueSize(audio_config, spec->samples*2) >= 0) && (alSetChannels(audio_config, spec->channels) >= 0) ) { - audio_port = ALopenport("SDL audio", "w", audio_config); + audio_port = alOpenPort("SDL audio", "w", audio_config); } alFreeConfig(audio_config); if( audio_port == NULL ) { diff -r 31d3af76488b -r 6399f4e90211 src/audio/nas/SDL_nasaudio.h --- a/src/audio/nas/SDL_nasaudio.h Thu Mar 06 06:02:16 2003 +0000 +++ b/src/audio/nas/SDL_nasaudio.h Thu Mar 06 06:12:41 2003 +0000 @@ -32,7 +32,11 @@ #ifndef _SDL_nasaudio_h #define _SDL_nasaudio_h +#ifdef __sgi +#include +#else #include