@@ -3,6 +3,7 @@ if (!(typeof SepiaFW == "object")){
33}
44( function ( parentModule ) {
55 var WebAudio = parentModule . webAudio || { } ;
6+ WebAudio . version = "0.9.1" ;
67
78 //Preparations
89 var AudioContext = window . AudioContext || window . webkitAudioContext ;
@@ -361,7 +362,7 @@ if (!(typeof SepiaFW == "object")){
361362 initializerError ( { message : "Error during setup of module: " + thisProcessNode . moduleName , name : "ProcessorInitError" , info : errorMessage } ) ;
362363 }
363364 if ( moduleSetup . onerror ) {
364- moduleSetup . onerror ( err ) ; //... in case the user requires per-module error messages
365+ moduleSetup . onerror ( err ) ;
365366 }
366367 }
367368
@@ -618,6 +619,7 @@ if (!(typeof SepiaFW == "object")){
618619 onAfterRelease : options . customSource . release || options . customSource . afterRelease
619620 } , {
620621 type : ( options . customSource . type || "custom" ) , //TODO: add more?
622+ typeData : options . customSource . typeData ,
621623 hasWorkletSupport : ( options . customSource . hasWorkletSupport != undefined ) ?
622624 options . customSource . hasWorkletSupport : true
623625 } ) ;
@@ -628,7 +630,7 @@ if (!(typeof SepiaFW == "object")){
628630 } ) ;
629631
630632 //Cordova Audioinput plugin
631- } else if ( isCordovaAudioinputSupported ) {
633+ // }else if (isCordovaAudioinputSupported){
632634 //TODO: implement?
633635
634636 //Official MediaDevices interface using microphone
@@ -983,6 +985,7 @@ if (!(typeof SepiaFW == "object")){
983985 var customSource = {
984986 node : processNode ,
985987 type : "scriptProcessor" ,
988+ typeData : res . info ,
986989 hasWorkletSupport : false , //does not fit into audio processing thread (normal worklets)
987990 //TODO: ?!?
988991 start : function ( ) { } ,
@@ -1069,6 +1072,10 @@ if (!(typeof SepiaFW == "object")){
10691072 audioBufferSourceNode . loop = true ;
10701073 return resolve ( {
10711074 node : audioBufferSourceNode ,
1075+ type : "fileAudioBuffer" ,
1076+ typeData : {
1077+ fileUrl : fileUrl
1078+ } ,
10721079 start : function ( ) { audioBufferSourceNode . start ( ) ; } ,
10731080 stop : function ( ) { audioBufferSourceNode . stop ( ) ; } ,
10741081 release : function ( ) { } //TODO: ?!?
0 commit comments