()
| 265 | }; |
| 266 | }; |
| 267 | var createNode=function(){ |
| 268 | if(!awNext())return; |
| 269 | var node=stream._n=new AwNode(ctx, RecProc, { |
| 270 | processorOptions:{bufferSize:bufferSize} |
| 271 | }); |
| 272 | mediaConn(node); |
| 273 | node.port.onmessage=function(e){ |
| 274 | if(badInt){ |
| 275 | clearTimeout(badInt);badInt=""; |
| 276 | }; |
| 277 | if(awNext()){ |
| 278 | onReceive(e.data.val); |
| 279 | }else if(!isWorklet){ |
| 280 | CLog(audioWorklet+"多余回调",3); |
| 281 | }; |
| 282 | }; |
| 283 | CLog("Connect采用"+audioWorklet+",设置"+RecTxt+"."+ConnectEnableWorklet+"=false可恢复老式"+scriptProcessor+webMTips+oldIsBest,3); |
| 284 | }; |
| 285 | |
| 286 | //如果start时的resume和下面的构造node同时进行,将会导致部分浏览器崩溃,源码assets中 ztest_chrome_bug_AudioWorkletNode.html 可测试。所以,将所有代码套到resume里面(不管catch),避免出现这个问题 |
| 287 | ctx.resume()[calls&&"finally"](function(){//注释掉这行 观摩浏览器崩溃 STATUS_ACCESS_VIOLATION |
no test coverage detected
searching dependent graphs…