Reputation: 12139
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?
Upvotes: 8
Views: 15304
Reputation: 3330
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
Upvotes: 12
Reputation: 108296
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?
Upvotes: 2