Actionscript 接收麦克风声音而不听到它

Actionscript 接收麦克风声音而不听到它,actionscript,actionscript-2,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; }; 编辑:回答/解

这将捕获麦克风声音并根据声级更改“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);

在麦克风对象上切换环回模式应该可以做到这一点

m.setLoopBack(false);

但是,如果这样做不起作用,那么您的操作系统声音设置可能已经打开了监视器或环回模式。我想说,在尝试setLoopback()之前先查看一下。在麦克风对象上切换环回模式应该可以做到这一点

m.setLoopBack(false);
但是,如果这样做不起作用,那么您的操作系统声音设置可能已经打开了监视器或环回模式。我想说,在尝试setLoopback()之前先查看一下