mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 06:49:27 +08:00
12 lines
1.6 KiB
JavaScript
12 lines
1.6 KiB
JavaScript
// AudioScheduledSourceNode对象
|
|
|
|
AudioScheduledSourceNode = function AudioScheduledSourceNode(){let arg=arguments[0];
|
|
|
|
if (arg!='bobo' && !(this instanceof AudioScheduledSourceNode) ){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")};bodavm.toolsFunc.symbolProperty(this);
|
|
|
|
if (arg =='bobo'){console.log_copy('AudioScheduledSourceNode 实例化对象 --->',JSON.stringify_bo(arguments,function(k,v){if (v==window){return 'window'}else{return v}}))};}
|
|
|
|
|
|
bodavm.toolsFunc.safeProto(AudioScheduledSourceNode, "AudioScheduledSourceNode");
|
|
|
|
AudioScheduledSourceNode.prototype.__proto__=AudioNode.prototype;
|
|
|
|
AudioScheduledSourceNode.__proto__=AudioNode;
|
|
|
|
bodavm.toolsFunc.defineProperty(AudioScheduledSourceNode.prototype, "onended", {configurable:true, enumerable:true, get:function bodefault (){return bodavm.toolsFunc.dispatch(this, AudioScheduledSourceNode.prototype, "AudioScheduledSourceNode", "bodefault_get", arguments)}, set:function bodefault (){return bodavm.toolsFunc.dispatch(this, AudioScheduledSourceNode.prototype, "AudioScheduledSourceNode", "bodefault_set", arguments)}},);
|
|
|
|
bodavm.toolsFunc.defineProperty(AudioScheduledSourceNode.prototype, "start", {configurable:true, enumerable:true, writable:true, value:function start (){return bodavm.toolsFunc.dispatch(this, AudioScheduledSourceNode.prototype, "AudioScheduledSourceNode", "start", arguments)}},);
|
|
|
|
bodavm.toolsFunc.defineProperty(AudioScheduledSourceNode.prototype, "stop", {configurable:true, enumerable:true, writable:true, value:function stop (){return bodavm.toolsFunc.dispatch(this, AudioScheduledSourceNode.prototype, "AudioScheduledSourceNode", "stop", arguments)}},);
|
|
|