Link to home
Start Free TrialLog in
Avatar of mahno
mahno

asked on

Microphone Boost

Hi,

Someone can tell me how can I using API functions (mixerXXX) turn on/off microphone boost? (Volume control->microphone->advanced->microphone boost)

PS: I'm using VC60 (OS Win9x/NT/2k)

Thanks

Avatar of CJ_S
CJ_S
Flag of Netherlands image

The whole mixer-stuff is a LOT...you'd better look in the Help files for yourself, it's too much to expalin.
In platform SDK, there is a sample named MaxApp, it can switch the microphone boost on or off, you can check it's code.
sorry, not MaxApp, is MixApp.
sorry, not MaxApp, is MixApp.
ASKER CERTIFIED SOLUTION
Avatar of yz
yz
Flag of China image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mahno
mahno

ASKER

Hi yz,

On my computer it's working only when I change "Mic Boost" to "Microphone Boost". I need a program that works on every PC. The parameter "szShortName" is equal to "Boost". Can I be sure that short name will be the same on every pc (independently of Windows version and regional settings(language)).

Thanks,
  mahno
Avatar of mahno

ASKER

I just a test this program on same pc - short name does not same, controlID too :( any suggestions?

Regards,
  mahno
Avatar of mahno

ASKER

thanks yz,

I solve my problem by changing
if (NULL != strstr(paMixerControls[u].szName, "Mic Boost"))
to
if (paMixerControls[u].dwControlType == MIXERCONTROL_CONTROLTYPE_ONOFF)

PS: U can take a look at my new multimedia question in "C++ Topic Area"

regards,
  mahno