Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- var AudioNode$connect = AudioNode.prototype.connect;
- var AudioNode$disconnect = AudioNode.prototype.disconnect;
- AudioNode.prototype.connect = connect;
- AudioNode.prototype.disconnect = disconnect;
- function connect(destination) {
- var args = [].slice.call(arguments, 1);
- if (typeof destination.__connectFrom === "function") {
- destination.__connectFrom.apply(destination, [ this ].concat(args));
- } else {
- AudioNode$connect.apply(this, [ destination ].concat(args));
- }
- };
- function disconnect() {
- var args = [].slice.call(arguments);
- if (args.length && typeof args[0].__disconnectFrom === "function") {
- destination.__disconnectFrom.apply(destination, [ this ].concat(args.slice(1)));
- } else {
- AudioNode$disconnect.apply(this, args);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement