Kwint wrote:
> When dwComponentType initialy set to MIXERLINE_COMPONENTTYPE_DST_WAVEIN, I
> get:
> Mixerline: Recording Control
> Mixer control: Mic Volume
> Changing value moves "Microphone" recording slider
>
>
> When dwComponentType initialy set to MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE:
> Mixerline: Microphone
> Mixer control: Mic Volume
> And it moves nothing :(
>
> When using
> mxl.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;
>
> I mxl.cConnections is 8. Looping through it I see all recording controls: Mono
> Mix, Stereo Mix, CD Player, Microphone, etc...
>
> When using
> mxl.dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE;
> I mxl.cConnections is 0.
>
> After driver update nothing changed.
>
> _______________________________________________
> sipxtapi-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
>
>
Did you have to replace in MpCodec_setGain both instances of
MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE with
MIXERLINE_COMPONENTTYPE_DST_WAVEIN or only the first one? The first
instance is in:
mxl.cbStruct = sizeof(mxl);
mxl.dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE;
mmresult = mixerGetLineInfo((HMIXEROBJ)hmx, &mxl,
MIXER_GETLINEINFOF_COMPONENTTYPE);
If I change just this one to MIXERLINE_COMPONENTTYPE_DST_WAVEIN then it
still works, and changes mic gain.
Then there is 2nd instance in for loop where we iterate through connections:
for(DWORD j=0; j<cConnections; j++)
{
mxl.dwSource = j;
mixerGetLineInfo((HMIXEROBJ)hmx, &mxl,
MIXER_GETLINEINFOF_SOURCE);
if (MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE ==
mxl.dwComponentType)
break;
}
If I change this instance to MIXERLINE_COMPONENTTYPE_DST_WAVEIN then it
will change volume on the wrong control.
Jaroslav Libak
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/