Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programatically launch Microphone Volume control panel in Windows Vista?

I want to let the user adjust the Mic volume. Rather than reinventing the wheel, we (in XP) would just launch the Volume control panel (by running sndvol32.exe).

You can bring up the Speaker Volume control in Win Vista by shelling out to : SndVol.exe

In XP you could specify a command line parameter -R to show Microphone volume.

Anyone know what the command line parameter is for SndVol.exe to show Mic volume for Windows Vista?

Or some other way to display the Mic volume control panel?

like image 501
Clay Nichols Avatar asked Jan 08 '09 02:01

Clay Nichols


2 Answers

I think what you want is "control.exe mmsys.cpl,,1"

If you want to access the Mixer and the other functions, you can use these shortcuts:
• Master Volume Left: SndVol.exe -f 0
• Master Volume Right: SndVol.exe -f 49825268
• Volume Mixer Left: SndVol.exe -r 0
• Volume Mixer Right: SndVol.exe -r 49490633
• Playback Devices: control.exe mmsys.cpl,,0
• Recording Devices: control.exe mmsys.cpl,,1
• Sounds: control.exe mmsys.cpl,,2
From http://www.errorforum.com/microsoft-windows-vista-error/4636-vista-tips-tricks-tweaks.html

like image 105
notandy Avatar answered Sep 25 '22 12:09

notandy


I'm a little confused by your question. This brings up the Recording window for me (ref):

sndvol32 -record

Are you trying to hide all mixers but one?

like image 29
Michael Haren Avatar answered Sep 24 '22 12:09

Michael Haren