comparison src/audio/mint/SDL_mintaudio_dma8.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
214 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff)); 214 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff));
215 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 215 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0)));
216 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); 216 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0)));
217 DEBUG_PRINT(("channels=%d, ", spec->channels)); 217 DEBUG_PRINT(("channels=%d, ", spec->channels));
218 DEBUG_PRINT(("freq=%d\n", spec->freq)); 218 DEBUG_PRINT(("freq=%d\n", spec->freq));
219
220 if (spec->channels > 2)
221 spec->channels = 2;
219 222
220 /* Check formats available */ 223 /* Check formats available */
221 spec->format = AUDIO_S8; 224 spec->format = AUDIO_S8;
222 225
223 /* Calculate and select the closest frequency */ 226 /* Calculate and select the closest frequency */