From 679f2480c9a66905b0a03c99e099b59bfd07879d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 3 May 2011 17:11:07 -0700 Subject: Add a device flag for channel config requests --- Alc/winmm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Alc/winmm.c') diff --git a/Alc/winmm.c b/Alc/winmm.c index 348e764f..c985ec0e 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -337,7 +337,15 @@ static ALCboolean WinMMOpenPlayback(ALCdevice *pDevice, const ALCchar *deviceNam pDevice->ExtraData = pData; if(pDevice->FmtChans != DevFmtMono) + { + if((pDevice->Flags&DEVICE_CHANNELS_REQUEST) && + pDevice->FmtChans != DevFmtStereo) + { + AL_PRINT("Failed to set requested channel config %#x, got stereo instead\n", pDevice->FmtChans); + pDevice->Flags &= ~DEVICE_CHANNELS_REQUEST; + } pDevice->FmtChans = DevFmtStereo; + } switch(pDevice->FmtType) { case DevFmtByte: -- cgit v1.2.3