每次我尝试在反馈延迟的情况下运行我的代码时,我的 Chrome 浏览器都会崩溃,我会看到蓝屏:
“糟糕,快!
显示此网页时出现问题。要继续,请重新加载或转到另一个页面。”
我的代码使用这种结构:
//Create any kind of input (only to test if it works or not);
var oscillator = context.createOscillator();
//Create the delay node and the gain node used on the feedback
var delayNode = context.createDelay();
var feedback = context.createGain();
//Setting the feedback gain
feedback.gain.value = 0.5;
//Make the connections
oscillator.connect(context.destination);
oscillator.connect(delayNode);
delayNode.connect(feedback);
feedback.connect(delayNode);
delayNode.connect(context.destination);//This is where it crashes