mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Setting correct duration value when calling play on BaseSound class
This commit is contained in:
parent
de0aefba7e
commit
55e5041ef8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue