mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:40:21 +00:00
winealsa: Unset WAVECAPS_DIRECTSOUND properly for capture.
This commit is contained in:
parent
b3fab140f3
commit
b67164d248
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue