Commit 343f85ea authored by Jeff Cook's avatar Jeff Cook Committed by Alexandre Julliard

winealsa.drv: If we can't open a device as stereo, try mono. This is necessary…

winealsa.drv: If we can't open a device as stereo, try mono. This is necessary for snd-usb-audio mics.
parent 6120d7cc
......@@ -106,6 +106,10 @@ static int ALSA_TestDeviceForWine(int card, int device, snd_pcm_stream_t stream
retcode = snd_pcm_hw_params_set_channels(pcm, hwparams, 2);
if (retcode < 0)
{
retcode = snd_pcm_hw_params_set_channels(pcm, hwparams, 1); /* If we can't open stereo, try mono; this is vital for snd_usb_audio microphones */
}
if (retcode < 0)
{
reason = "Could not set channels";
goto exit;
}
......
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