【发布时间】:2013-09-12 03:27:47
【问题描述】:
每次我尝试在反馈延迟的情况下运行我的代码时,我的 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
【问题讨论】:
-
什么 Chrome 浏览器版本,你能显示完整的代码吗?因为我一直使用反馈延迟循环。它会在创建节点时崩溃吗?启动()振荡器?
-
我使用的是 Chrome 31.0.1626.0 开发版。它恰好在我运行代码的最后一行 delayNode.connect(context.destination) 时崩溃。
-
这是一段实际代码在调试模式下运行的视频YouTube Video
-
这不是一个残酷的无限循环吗? osc -> 延迟 反馈然后延迟到目的地?
-
感谢@jsantell 的回复,但这不是造成反馈延迟的方法吗?
标签: javascript google-chrome crash delay web-audio-api