# HG changeset patch # User Ryan C. Gordon # Date 1010951474 0 # Node ID 07d0939d40e7bc383f3e2309550e5eb4af6c47cb # Parent 9bafd3e8276e903181b2c7e58d017fa57f593323 Support for .AU files added. diff -r 9bafd3e8276e -r 07d0939d40e7 SDL_sound.c --- a/SDL_sound.c Sun Jan 13 19:50:55 2002 +0000 +++ b/SDL_sound.c Sun Jan 13 19:51:14 2002 +0000 @@ -67,6 +67,10 @@ extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AIFF; #endif +#if (defined SOUND_SUPPORTS_AU) +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AU; +#endif + #if (defined SOUND_SUPPORTS_OGG) extern const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG; #endif @@ -121,6 +125,10 @@ { 0, &__Sound_DecoderFunctions_AIFF }, #endif +#if (defined SOUND_SUPPORTS_AU) + { 0, &__Sound_DecoderFunctions_AU }, +#endif + #if (defined SOUND_SUPPORTS_OGG) { 0, &__Sound_DecoderFunctions_OGG }, #endif diff -r 9bafd3e8276e -r 07d0939d40e7 acconfig.h --- a/acconfig.h Sun Jan 13 19:50:55 2002 +0000 +++ b/acconfig.h Sun Jan 13 19:51:14 2002 +0000 @@ -3,6 +3,7 @@ #undef DEBUG_CHATTER #undef NDEBUG #undef SOUND_SUPPORTS_AIFF +#undef SOUND_SUPPORTS_AU #undef SOUND_SUPPORTS_MIKMOD #undef SOUND_SUPPORTS_MODPLUG #undef SOUND_SUPPORTS_MP3 diff -r 9bafd3e8276e -r 07d0939d40e7 configure.in --- a/configure.in Sun Jan 13 19:50:55 2002 +0000 +++ b/configure.in Sun Jan 13 19:51:14 2002 +0000 @@ -126,6 +126,13 @@ AC_DEFINE(SOUND_SUPPORTS_AIFF) fi +dnl Check for au decoder inclusion +AC_ARG_ENABLE(au, +[ --enable-au enable AU decoding [default=yes]], + , enable_au=yes) +if test x$enable_au = xyes; then + AC_DEFINE(SOUND_SUPPORTS_AU) +fi dnl Check for shn decoder inclusion... AC_ARG_ENABLE(shn, diff -r 9bafd3e8276e -r 07d0939d40e7 decoders/Makefile.am --- a/decoders/Makefile.am Sun Jan 13 19:50:55 2002 +0000 +++ b/decoders/Makefile.am Sun Jan 13 19:51:14 2002 +0000 @@ -6,6 +6,7 @@ libdecoders_la_SOURCES = \ aiff.c \ + au.c \ mikmod.c \ modplug.c \ mp3.c \