comparison src/audio/mint/SDL_mintaudio_mcsn.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
222 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 222 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0)));
223 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); 223 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0)));
224 DEBUG_PRINT(("channels=%d, ", spec->channels)); 224 DEBUG_PRINT(("channels=%d, ", spec->channels));
225 DEBUG_PRINT(("freq=%d\n", spec->freq)); 225 DEBUG_PRINT(("freq=%d\n", spec->freq));
226 226
227 if (spec->channels > 2) {
228 spec->channels = 2; /* no more than stereo! */
229 }
230
227 /* Check formats available */ 231 /* Check formats available */
228 MINTAUDIO_freqcount=0; 232 MINTAUDIO_freqcount=0;
229 switch(cookie_mcsn->play) { 233 switch(cookie_mcsn->play) {
230 case MCSN_ST: 234 case MCSN_ST:
231 spec->channels=1; 235 spec->channels=1;