dsound: Set dwChannelMask when limiting channels.

This commit is contained in:
Maarten Lankhorst 2012-11-26 17:02:06 +01:00 committed by Alexandre Julliard
parent 642e9a1eda
commit 79084be3c1
1 changed files with 1 additions and 0 deletions
dlls/dsound

View File

@ -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)) {