Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio_stfa.c Wed Aug 02 21:26:31 2006 +0000 +++ b/src/audio/mint/SDL_mintaudio_stfa.c Fri Sep 01 22:50:24 2006 +0000 @@ -205,6 +205,10 @@ DEBUG_PRINT(("channels=%d, ", spec->channels)); DEBUG_PRINT(("freq=%d\n", spec->freq)); + if (spec->channels > 2) { + spec->channels = 2; /* no more than stereo! */ + } + /* Check formats available */ MINTAUDIO_freqcount=0; for (i=0;i<16;i++) {