Mercurial > sdl-ios-xcode
comparison src/audio/mint/SDL_mintaudio_stfa.c @ 3851:405a192b68e7 SDL-1.2
Backport from 1.3: most of the audio drivers can now handle data
conversion at a higher level when they can't open the hardware in the
exact format requested.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 01 Sep 2006 22:50:24 +0000 |
parents | a8181c4040b8 |
children | e958a003b69b |
comparison
equal
deleted
inserted
replaced
3850:28db418c7573 | 3851:405a192b68e7 |
---|---|
203 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); | 203 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); |
204 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); | 204 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); |
205 DEBUG_PRINT(("channels=%d, ", spec->channels)); | 205 DEBUG_PRINT(("channels=%d, ", spec->channels)); |
206 DEBUG_PRINT(("freq=%d\n", spec->freq)); | 206 DEBUG_PRINT(("freq=%d\n", spec->freq)); |
207 | 207 |
208 if (spec->channels > 2) { | |
209 spec->channels = 2; /* no more than stereo! */ | |
210 } | |
211 | |
208 /* Check formats available */ | 212 /* Check formats available */ |
209 MINTAUDIO_freqcount=0; | 213 MINTAUDIO_freqcount=0; |
210 for (i=0;i<16;i++) { | 214 for (i=0;i<16;i++) { |
211 SDL_MintAudio_AddFrequency(this, freqs[i], 0, i, -1); | 215 SDL_MintAudio_AddFrequency(this, freqs[i], 0, i, -1); |
212 } | 216 } |