I only change the first one.
If I change second either, then it sets volume on the last recording control,
because it doesn't break from loop.

So I use:

MIXERLINE mxl;
memset(&mxl, 0, sizeof(MIXERLINE));
mxl.cbStruct = sizeof(mxl);
mxl.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;

and

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;
}

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to