Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio_dma8.c Wed Aug 02 21:26:31 2006 +0000 +++ b/src/audio/mint/SDL_mintaudio_dma8.c Fri Sep 01 22:50:24 2006 +0000 @@ -217,6 +217,9 @@ DEBUG_PRINT(("channels=%d, ", spec->channels)); DEBUG_PRINT(("freq=%d\n", spec->freq)); + if (spec->channels > 2) + spec->channels = 2; + /* Check formats available */ spec->format = AUDIO_S8;