Setting correct duration value when calling play on BaseSound class

This commit is contained in:
Pavle Goloskokovic 2017-11-22 18:00:53 +01:00
parent de0aefba7e
commit 55e5041ef8

View file

@ -156,6 +156,7 @@ var BaseSound = new Class({
}
if (!marker) {
this.currentConfig = this.config;
this.duration = this.totalDuration;
}
else {
if (!this.markers[marker]) {
@ -164,6 +165,7 @@ var BaseSound = new Class({
}
this.currentMarker = marker;
this.currentConfig = this.markers[marker].config;
this.duration = this.currentMarker.duration;
}
this.currentConfig = Extend(this.currentConfig, config);
this.isPlaying = true;