From 79084be3c176e169d4f45391a7a566867c9c8f7d Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 26 Nov 2012 17:02:06 +0100 Subject: [PATCH] dsound: Set dwChannelMask when limiting channels. --- dlls/dsound/primary.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index bf76dec2676..bc72d782b07 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -80,6 +80,7 @@ static HRESULT DSOUND_WaveFormat(DirectSoundDevice *device, IAudioClient *client mixwfe->Format.nChannels = 2; mixwfe->Format.nBlockAlign = mixwfe->Format.nChannels * mixwfe->Format.wBitsPerSample / 8; mixwfe->Format.nAvgBytesPerSec = mixwfe->Format.nSamplesPerSec * mixwfe->Format.nBlockAlign; + mixwfe->dwChannelMask = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT; } if (!IsEqualGUID(&mixwfe->SubFormat, &KSDATAFORMAT_SUBTYPE_IEEE_FLOAT)) {