From 447b045825e1d0ba7cdeb2f75ef3935d320f97bc Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 27 Mar 2012 11:11:11 -0500 Subject: [PATCH] winmm: Report waveIn devices' component type as Microphone. --- dlls/winmm/waveform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 3ca087e4ffd..c7d3118090e 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -3671,7 +3671,7 @@ static UINT WINMM_GetSourceLineInfo(WINMM_MMDevice *mmdevice, UINT mmdev_index, memcpy(info->Target.szPname, mmdevice->out_caps.szPname, sizeof(info->Target.szPname)); }else{ - info->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_LINE; + info->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE; info->Target.dwType = MIXERLINE_TARGETTYPE_UNDEFINED; info->Target.szPname[0] = '\0'; } @@ -3740,7 +3740,7 @@ static UINT WINMM_GetComponentTypeLineInfo(WINMM_MMDevice *mmdevice, 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) return MIXERR_INVALLINE; info->dwSource = 0; -- 2.11.4.GIT