# HG changeset patch # User Ryan C. Gordon # Date 1020060767 0 # Node ID 31cc49d7d0ce61dfafee7203b1cae39102b89122 # Parent 182fdc76060d3ac43126cf6871a90219761bbf9a MacOS fixes. diff -r 182fdc76060d -r 31cc49d7d0ce Makefile.am --- a/Makefile.am Mon Apr 29 06:12:20 2002 +0000 +++ b/Makefile.am Mon Apr 29 06:12:47 2002 +0000 @@ -36,4 +36,5 @@ CREDITS \ COPYING \ CHANGELOG \ - CWProject.sit + CWProject.sit \ + PBProjects.tar.gz diff -r 182fdc76060d -r 31cc49d7d0ce SDL_sound.c --- a/SDL_sound.c Mon Apr 29 06:12:20 2002 +0000 +++ b/SDL_sound.c Mon Apr 29 06:12:47 2002 +0000 @@ -99,7 +99,9 @@ extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; #endif - +#if (defined SOUND_SUPPORTS_QUICKTIME) +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; +#endif typedef struct { @@ -161,6 +163,10 @@ { 0, &__Sound_DecoderFunctions_MIDI }, #endif +#if (defined SOUND_SUPPORTS_QUICKTIME) + { 0, &__Sound_DecoderFunctions_QuickTime }, +#endif + { 0, NULL } }; diff -r 182fdc76060d -r 31cc49d7d0ce SDL_sound_internal.h --- a/SDL_sound_internal.h Mon Apr 29 06:12:20 2002 +0000 +++ b/SDL_sound_internal.h Mon Apr 29 06:12:47 2002 +0000 @@ -35,7 +35,7 @@ #include "SDL.h" -#if ((defined _MSC_VER) && (!defined inline)) +#if (defined(_MSC_VER) && !defined(inline)) # define inline __inline__ #endif diff -r 182fdc76060d -r 31cc49d7d0ce decoders/mpglib.c --- a/decoders/mpglib.c Mon Apr 29 06:12:20 2002 +0000 +++ b/decoders/mpglib.c Mon Apr 29 06:12:47 2002 +0000 @@ -174,7 +174,7 @@ internal->decoder_private = mpg; sample->actual.rate = mpglib_freqs[mpg->mp.fr.sampling_frequency]; sample->actual.channels = mpg->mp.fr.stereo; - sample->actual.format = AUDIO_S16LSB; /* !!! FIXME: Is this right? */ + sample->actual.format = AUDIO_S16SYS; /* !!! FIXME: Is this right? */ sample->flags = SOUND_SAMPLEFLAG_NONE; return(1); /* we'll handle this data. */ diff -r 182fdc76060d -r 31cc49d7d0ce decoders/mpglib/mpg123_sdlsound.h --- a/decoders/mpglib/mpg123_sdlsound.h Mon Apr 29 06:12:20 2002 +0000 +++ b/decoders/mpglib/mpg123_sdlsound.h Mon Apr 29 06:12:47 2002 +0000 @@ -2,15 +2,18 @@ #include #include -#ifndef WIN32 +#if !defined(WIN32) && !defined(macintosh) #include #endif #include -#ifdef _WIN32 +#if defined(_WIN32) # undef WIN32 # define WIN32 +#endif + +#if defined(WIN32) || defined(macintosh) # define M_PI 3.14159265358979323846 # define M_SQRT2 1.41421356237309504880 diff -r 182fdc76060d -r 31cc49d7d0ce decoders/mpglib/mpglib_common.c --- a/decoders/mpglib/mpglib_common.c Mon Apr 29 06:12:20 2002 +0000 +++ b/decoders/mpglib/mpglib_common.c Mon Apr 29 06:12:47 2002 +0000 @@ -2,10 +2,6 @@ #include #include -#include -#include -#include - #include "SDL_sound.h" #define __SDL_SOUND_INTERNAL__