接收麦克风声音而不听

时间:2011-09-27 23:56:23

标签: actionscript actionscript-2

这会捕捉麦克风声音并根据声音级别更改'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;
};

编辑:答案/解决方案

使用setLoopBack的series8217的诀窍没有用,但这引导我在网上得到答案:

m = Microphone.get();
var myAudio:Sound=new Sound(attachAudio(m));
myAudio.setVolume(0);

感谢您的时间

编辑:其他解决方案

我的技巧可能会干扰声音。使用它,静音麦克风但闪光灯仍然接收输入:

m = Microphone.get();
m.setSilenceLevel(100);

1 个答案:

答案 0 :(得分:1)

切换麦克风对象的环回模式应该可以解决问题。

m.setLoopBack(false);

但是,如果不这样做,可能是您的操作系统声音设置已启用监视器或环回模式。我想在尝试setLoopback()之前先研究一下。

相关问题