Skip to content

Commit

Permalink
Support for .AU files added.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 13, 2002
1 parent 4b650ea commit 7809854
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SDL_sound.c
Expand Up @@ -67,6 +67,10 @@ extern const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV;
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
Expand Down Expand Up @@ -121,6 +125,10 @@ static decoder_element decoders[] =
{ 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
Expand Down
1 change: 1 addition & 0 deletions acconfig.h
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions configure.in
Expand Up @@ -126,6 +126,13 @@ if test x$enable_aiff = xyes; then
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,
Expand Down
1 change: 1 addition & 0 deletions decoders/Makefile.am
Expand Up @@ -6,6 +6,7 @@ INCLUDES = -I$(top_srcdir) -Itimidity

libdecoders_la_SOURCES = \
aiff.c \
au.c \
mikmod.c \
modplug.c \
mp3.c \
Expand Down

0 comments on commit 7809854

Please sign in to comment.