Commit b67164d2 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winealsa: Unset WAVECAPS_DIRECTSOUND properly for capture.

parent b3fab140
......@@ -504,12 +504,6 @@ static int ALSA_AddCaptureDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pcm
wwi.incaps.wPid = MM_CREATIVE_SBP16_WAVEOUT;
wwi.incaps.vDriverVersion = 0x0100;
if (wwi.ds_caps.dwFlags & WAVECAPS_DIRECTSOUND)
{
FIXME("Add support for DSCapture\n");
wwi.ds_caps.dwFlags &= ~WAVECAPS_DIRECTSOUND;
}
rc = ALSA_ComputeCaps(ctl, pcm, &wwi.incaps.wChannels, &wwi.ds_caps.dwFlags,
&wwi.incaps.dwFormats, &wwi.dwSupport);
if (rc)
......@@ -519,6 +513,12 @@ static int ALSA_AddCaptureDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pcm
return(rc);
}
if (wwi.dwSupport & WAVECAPS_DIRECTSOUND)
{
FIXME("Add support for DSCapture\n");
wwi.dwSupport &= ~WAVECAPS_DIRECTSOUND;
}
rc = ALSA_AddDeviceToArray(&wwi, &WInDev, &ALSA_WidNumDevs, &ALSA_WidNumMallocedDevs, isdefault);
if (rc)
ALSA_FreeDevice(&wwi);
......
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