接收麦克风声音而不听到它
这会捕获麦克风声音并根据声音级别更改“foo”的 alpha。但是,我听到麦克风输入。我希望视觉效果能够在没有听到任何声音的情况下发挥作用。我该怎么做呢?
m = Microphone.get();
_root.attachAudio(m);
m.setVolume(0); //i can still hear sound. does not mute mic.
onEnterFrame = function () {
foo._alpha = m.activityLevel+33;
};
编辑:答案/解决方案
series8217 的 setLoopBack 技巧不起作用,但这让我在网上找到了答案:
m = Microphone.get();
var myAudio:Sound=new Sound(attachAudio(m));
myAudio.setVolume(0);
谢谢您的时间
编辑:其他解决方案
我的技巧可能会干扰声音。使用此功能,使麦克风静音,但闪光灯仍然接收输入:
m = Microphone.get();
m.setSilenceLevel(100);
This captures microphone sound and changes the alpha of 'foo' according to the sound level. However, I hear the microphones input. I want the visuals to work without hearing any sound. How would I do that?
m = Microphone.get();
_root.attachAudio(m);
m.setVolume(0); //i can still hear sound. does not mute mic.
onEnterFrame = function () {
foo._alpha = m.activityLevel+33;
};
EDIT: ANSWER / SOLUTION
series8217's trick with setLoopBack did not work, but that led me to the answer online:
m = Microphone.get();
var myAudio:Sound=new Sound(attachAudio(m));
myAudio.setVolume(0);
thanks for your time
EDIT: OTHER SOLUTION
my trick may interfere with sound. using this, mutes the mic but flash still receives input:
m = Microphone.get();
m.setSilenceLevel(100);
切换麦克风对象的环回模式应该可以解决问题。
但是,如果这不起作用,则可能是您的操作系统声音设置打开了监听或环回模式。我想说在尝试 setLoopback() 之前先看看这一点。
Switching the loopback mode on the microphone object should do the trick.
However, if that doesn't do it, perhaps your OS sound settings have monitor or loopback mode turned on. I'd say look into that before trying setLoopback().