diff src/audio/mint/SDL_mintaudio_gsxb.c @ 3852:5b5e549382b3 SDL-1.2

Removed some new 1.3 symbols from code backported to 1.2.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 03 Sep 2006 21:34:11 +0000
parents 405a192b68e7
children e958a003b69b
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio_gsxb.c	Fri Sep 01 22:50:24 2006 +0000
+++ b/src/audio/mint/SDL_mintaudio_gsxb.c	Sun Sep 03 21:34:11 2006 +0000
@@ -201,7 +201,7 @@
 {
 	long snd_format;
 	int i, resolution, format_signed, format_bigendian;
-    SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
+    Uint16 test_format = SDL_FirstAudioFormat(spec->format);
     int valid_datatype = 0;
 
 	resolution = spec->format & 0x00ff;
@@ -222,9 +222,9 @@
         /* Check formats available */
         snd_format = Sndstatus(SND_QUERYFORMATS);
         spec->format = test_format;
-        resolution = SDL_AUDIO_BITSIZE(spec->format);
-        format_signed = SDL_AUDIO_ISSIGNED(spec->format);
-        format_bigendian = SDL_AUDIO_ISBIGENDIAN(spec->format);
+        resolution = spec->format & 0xff;
+        format_signed = (spec->format & (1<<15));
+        format_bigendian = (spec->format & (1<<12));
         switch (test_format) {
             case AUDIO_U8:
             case AUDIO_S8: