Commit 447b0458 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

winmm: Report waveIn devices' component type as Microphone.

parent 6a6e1bd5
...@@ -3671,7 +3671,7 @@ static UINT WINMM_GetSourceLineInfo(WINMM_MMDevice *mmdevice, UINT mmdev_index, ...@@ -3671,7 +3671,7 @@ static UINT WINMM_GetSourceLineInfo(WINMM_MMDevice *mmdevice, UINT mmdev_index,
memcpy(info->Target.szPname, mmdevice->out_caps.szPname, memcpy(info->Target.szPname, mmdevice->out_caps.szPname,
sizeof(info->Target.szPname)); sizeof(info->Target.szPname));
}else{ }else{
info->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_LINE; info->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE;
info->Target.dwType = MIXERLINE_TARGETTYPE_UNDEFINED; info->Target.dwType = MIXERLINE_TARGETTYPE_UNDEFINED;
info->Target.szPname[0] = '\0'; info->Target.szPname[0] = '\0';
} }
...@@ -3740,7 +3740,7 @@ static UINT WINMM_GetComponentTypeLineInfo(WINMM_MMDevice *mmdevice, ...@@ -3740,7 +3740,7 @@ static UINT WINMM_GetComponentTypeLineInfo(WINMM_MMDevice *mmdevice,
return WINMM_GetDestinationLineInfo(mmdevice, mmdev_index, info, flags); return WINMM_GetDestinationLineInfo(mmdevice, mmdev_index, info, flags);
} }
if(info->dwComponentType == MIXERLINE_COMPONENTTYPE_SRC_LINE){ if(info->dwComponentType == MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE){
if(is_out) if(is_out)
return MIXERR_INVALLINE; return MIXERR_INVALLINE;
info->dwSource = 0; info->dwSource = 0;
......
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