From: Bernhard Übelacker bernhardu@mailbox.org
--- dlls/dsound/primary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index 9a5557f2c83..04e66ec6461 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -128,9 +128,9 @@ static HRESULT DSOUND_WaveFormat(DirectSoundDevice *device, IAudioClient *client wfe.Samples.wValidBitsPerSample = wfe.Format.wBitsPerSample = 32;
if (wfe.Format.nChannels < device->num_speakers) { - device->speaker_config = DSOUND_FindSpeakerConfig(device->mmdevice, mixwfe->Format.nChannels); + device->speaker_config = DSOUND_FindSpeakerConfig(device->mmdevice, wfe.Format.nChannels); DSOUND_ParseSpeakerConfig(device); - } else if (mixwfe->Format.nChannels > device->num_speakers) { + } else if (wfe.Format.nChannels > device->num_speakers) { wfe.Format.nChannels = device->num_speakers; wfe.dwChannelMask = speaker_config_to_channel_mask(device->speaker_config); }