Commit b8753ada authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

winealsa.drv: Default to Stereo instead of 5.1 Surround.

Some popular ALSA plugins claim support for a large number of channels because they have the capability to mix that down to the actual hardware configuration. Instead of defaulting to 5.1 Surround sound for these plugins, let's fall back on the much more common Stereo configuration. Users with actual 5.1 Surround setups can tell us about it in winecfg.
parent ed318c91
......@@ -1828,7 +1828,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
}
if(max_channels > 6)
fmt->Format.nChannels = 6;
fmt->Format.nChannels = 2;
else
fmt->Format.nChannels = max_channels;
......@@ -4068,7 +4068,9 @@ HRESULT WINAPI AUDDRV_GetPropValue(GUID *guid, const PROPERTYKEY *prop, PROPVARI
out->vt = VT_UI4;
if (num_speakers >= 6)
if (num_speakers > 6)
out->u.ulVal = KSAUDIO_SPEAKER_STEREO;
else if (num_speakers == 6)
out->u.ulVal = KSAUDIO_SPEAKER_5POINT1;
else if (num_speakers >= 4)
out->u.ulVal = KSAUDIO_SPEAKER_QUAD;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment