Module: wine Branch: master Commit: 447b045825e1d0ba7cdeb2f75ef3935d320f97bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=447b045825e1d0ba7cdeb2f75e...
Author: Andrew Eikum aeikum@codeweavers.com Date: Tue Mar 27 11:11:11 2012 -0500
winmm: Report waveIn devices' component type as Microphone.
---
dlls/winmm/waveform.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 3ca087e..c7d3118 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;