是用sendmessage嗎?
不知道參數應該是什麼,查了好多文檔,沒找到
不是的話應該如何控制?
這有一個解決方案,但首先得看懂
http://www.codeproject.com/Articles/11695/Audio-Library-Part-I-Windows-Mixer-Control?msg=5167876#_articleTop
_其實對於我的要求來說,只用到了其中一點
private Mixers mMixers;
public MixerLines lines;
//Initialization
mMixers = new Mixers();
mMixers.Recording.DeviceId = 1;
lines = mMixers.Recording.Lines;
//mute microphone
lines[0].Volume = 0;
lines[1].Volume = 0;
//set microphone volume toppest
lines[0].Volume = 0xffff;
lines[1].Volume = 0xffff;