How to set microphone level in a program?

How to set microphone level in a program?

Post by feng_62.. » Tue, 22 Dec 1998 04:00:00

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,
                if (MMSYSERR_NOERROR != result)
                        // Couldn't get the mixer line.
                        state = FALSE;
                        return result;

                result = mixerGetLineControls((HMIXEROBJ)hMixer, &mxlc,

The last statement always returns none Zero.


-----------== Posted via Deja News, The Discussion Network ==----------       Search, Read, Discuss, or Start Your Own