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.
This commit is contained in:
Andrew Eikum 2015-05-18 11:38:01 -05:00 committed by Alexandre Julliard
parent ed318c91f2
commit b8753ada42
1 changed files with 4 additions and 2 deletions

View File

@ -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;