mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
dsound: Set dwChannelMask when limiting channels.
This commit is contained in:
parent
642e9a1eda
commit
79084be3c1
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user