You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -389,7 +410,7 @@ if (!(typeof SepiaFW == "object")){
389
410
info: errorMessage
390
411
});
391
412
if(isInitPending&&!isInitialized){
392
-
completeInitCondition("module-"+i);
413
+
//completeInitCondition("module-" + i);
393
414
initializerError({message: "Error during setup of module: "+thisProcessNode.moduleName,name: "ProcessorInitError",info: errorMessage});
394
415
}
395
416
if(moduleSetup.onerror){
@@ -400,7 +421,8 @@ if (!(typeof SepiaFW == "object")){
400
421
//AudioWorkletProcessor
401
422
if(moduleType==1){
402
423
if(!sourceHasWorkletSupport){
403
-
throw{name: "AddModuleError",message: ("Source does not support 'AudioWorkletProcessor' (use only workers instead) - name: "+moduleName)};
424
+
initializerError({name: "AddModuleError",message: ("Source does not support 'AudioWorkletProcessor' (use only workers instead) - name: "+moduleName)});
425
+
return;
404
426
}
405
427
if(!fullOptions.processorOptions)fullOptions.processorOptions=fullOptions.setup||{};//common field is "setup"
406
428
if(!fullOptions.processorOptions.ctxInfo){
@@ -456,14 +478,17 @@ if (!(typeof SepiaFW == "object")){
456
478
457
479
//Script Processor
458
480
}elseif(moduleType==3){
459
-
throw{name: "AddModuleError",message: "ScriptProcessor nodes are currently not supported as modules (only source)."};
481
+
initializerError({name: "AddModuleError",message: "ScriptProcessor nodes are currently not supported as modules (only source)."});
482
+
return;
460
483
461
484
//Audio Node
462
485
}elseif(moduleType==4){
463
-
throw{name: "AddModuleError",message: "AudioNodes are currently not supported as modules (you can use them as custom source)."};
464
-
486
+
initializerError({name: "AddModuleError",message: "AudioNodes are currently not supported as modules (you can use them as custom source)."});
thisProcessNode.ignoreSendToModules=false;//this is most useful for workers to prevent serialization if message is not processed anyway
@@ -488,7 +513,8 @@ if (!(typeof SepiaFW == "object")){
488
513
if(!sourceHasWorkletSupport&&i==0){
489
514
varsource=processNodes[0];
490
515
if(!source.onmessage){
491
-
throw{name: "AddModuleError",message: "If source is not compatible to 'AudioWorklet' it has to have a 'onmessage' event to get the processed data."};
516
+
initializerError({name: "AddModuleError",message: "If source is not compatible to 'AudioWorklet' it has to have a 'onmessage' event to get the processed data."});
517
+
return;
492
518
}
493
519
source.onmessage=function(e){
494
520
//like 'sendToModules' this can be event or data for processing
0 commit comments