Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3851:405a192b68e7 | 3852:5b5e549382b3 |
---|---|
199 | 199 |
200 static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec) | 200 static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec) |
201 { | 201 { |
202 long snd_format; | 202 long snd_format; |
203 int i, resolution, format_signed, format_bigendian; | 203 int i, resolution, format_signed, format_bigendian; |
204 SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format); | 204 Uint16 test_format = SDL_FirstAudioFormat(spec->format); |
205 int valid_datatype = 0; | 205 int valid_datatype = 0; |
206 | 206 |
207 resolution = spec->format & 0x00ff; | 207 resolution = spec->format & 0x00ff; |
208 format_signed = ((spec->format & 0x8000)!=0); | 208 format_signed = ((spec->format & 0x8000)!=0); |
209 format_bigendian = ((spec->format & 0x1000)!=0); | 209 format_bigendian = ((spec->format & 0x1000)!=0); |
220 | 220 |
221 while ((!valid_datatype) && (test_format)) { | 221 while ((!valid_datatype) && (test_format)) { |
222 /* Check formats available */ | 222 /* Check formats available */ |
223 snd_format = Sndstatus(SND_QUERYFORMATS); | 223 snd_format = Sndstatus(SND_QUERYFORMATS); |
224 spec->format = test_format; | 224 spec->format = test_format; |
225 resolution = SDL_AUDIO_BITSIZE(spec->format); | 225 resolution = spec->format & 0xff; |
226 format_signed = SDL_AUDIO_ISSIGNED(spec->format); | 226 format_signed = (spec->format & (1<<15)); |
227 format_bigendian = SDL_AUDIO_ISBIGENDIAN(spec->format); | 227 format_bigendian = (spec->format & (1<<12)); |
228 switch (test_format) { | 228 switch (test_format) { |
229 case AUDIO_U8: | 229 case AUDIO_U8: |
230 case AUDIO_S8: | 230 case AUDIO_S8: |
231 if (snd_format & SND_FORMAT8) { | 231 if (snd_format & SND_FORMAT8) { |
232 valid_datatype = 1; | 232 valid_datatype = 1; |