Hi I am trying to write a program to set microphone level and mute unmute the
mic. I use mixerGetLineControl functions, But when I want to get the control
info for mute for the line, it returns "invalide control type". Who can tell
me why. The platform is Dell OptiPlex GX1. Thank you very much.
mxlInit();//initiate mixerline structure with ..._SRC_MICROPHONE
result = mixerGetLineInfo((HMIXEROBJ)hMixer,
&mxl,
MIXER_GETLINEINFOF_COMPONENTTYPE);
if (MMSYSERR_NOERROR != result)
{
// Couldn't get the mixer line.
state = FALSE;
return result;
}
mxcInit();
mxlcInit(MIXERCONTROL_CONTROLTYPE_MUTE);
result = mixerGetLineControls((HMIXEROBJ)hMixer, &mxlc,
MIXER_GETLINECONTROLSF_ONEBYTYPE);
The last statement always returns none Zero.
Thanks!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own