boda_jsEnv/env_xbb_lastest_jsdom/env copy/OfflineAudioContext.js
xuxiaobo-bobo a27aa6f31b '0605'
2023-06-05 23:25:43 +08:00

19 lines
2.5 KiB
JavaScript

// OfflineAudioContext对象
bodavm.memory.globalobj['OfflineAudioContext'] = function OfflineAudioContext(){
if (!(this instanceof OfflineAudioContext)) {
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'OfflineAudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
};
if (arguments.length <1){
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'OfflineAudioContext': 1 argument required, but only 0 present.")}
}
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['OfflineAudioContext'], "OfflineAudioContext");
bodavm.memory.globalobj['OfflineAudioContext'].prototype.__proto__=bodavm.memory.globalobj['BaseAudioContext'].prototype;
bodavm.memory.globalobj['OfflineAudioContext'].__proto__=bodavm.memory.globalobj['BaseAudioContext'];
bodavm.toolsFunc.defineProperty('OfflineAudioContext', "oncomplete", {configurable:true, enumerable:true, get:function oncomplete (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OfflineAudioContext'].prototype, "OfflineAudioContext", "oncomplete_get", arguments)}, set:function oncomplete (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OfflineAudioContext'].prototype, "OfflineAudioContext", "oncomplete_set", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('OfflineAudioContext', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OfflineAudioContext'].prototype, "OfflineAudioContext", "length_get", arguments)}, set:undefined},'prototype');
bodavm.toolsFunc.defineProperty('OfflineAudioContext', "resume", {configurable:true, enumerable:true, writable:true, value:function resume (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OfflineAudioContext'].prototype, "OfflineAudioContext", "resume", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('OfflineAudioContext', "startRendering", {configurable:true, enumerable:true, writable:true, value:function startRendering (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OfflineAudioContext'].prototype, "OfflineAudioContext", "startRendering", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('OfflineAudioContext', "suspend", {configurable:true, enumerable:true, writable:true, value:function suspend (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OfflineAudioContext'].prototype, "OfflineAudioContext", "suspend", arguments)}},'prototype');