根据docs,AudioWorker节点应该可以正常工作。当我尝试创建它时,控制台会返回:
我的代码:
var context;
if (typeof AudioContext !== 'undefined') {
context = new AudioContext();
}
else if (typeof webkitAudioContext !== 'undefined') {
context = new webkitAudioContext();
}
else {
throw new Error('AudioContext not supported. :(');
}
var foo = context.createAudioWorker();
我做错了吗,还是没有在FF / Chrome中实现?
最佳答案
它尚未在Chrome中实现。它在计划中,但尚未开始实现。