Removed setting duration setting in config for WebAudioSound

This commit is contained in:
Pavle Goloskokovic 2017-11-22 17:51:10 +01:00
parent 1296dd737d
commit 90d2e8cf03

View file

@ -51,10 +51,6 @@ var WebAudioSound = new Class({
// TODO add duration and total duration
this.muteNode.connect(this.volumeNode);
this.volumeNode.connect(manager.destination);
if (config === void 0) {
config = {};
}
config.duration = this.audioBuffer.duration;
BaseSound.call(this, manager, key, config);
},
play: function (marker, config) {