mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Taking into account marker start time if marker is currently played
This commit is contained in:
parent
0ded9af3a9
commit
d369d46e35
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ var WebAudioSound = new Class({
|
|||
}
|
||||
this.stopAndRemoveBufferSource();
|
||||
// TODO include config offset and marker start
|
||||
this.createAndStartBufferSource(0, this.duration);
|
||||
var offset = this.currentMarker ? this.currentMarker.start : 0;
|
||||
var duration = this.duration;
|
||||
this.createAndStartBufferSource(offset, duration);
|
||||
this.startTime = this.manager.context.currentTime;
|
||||
this.pausedTime = 0;
|
||||
return this;
|
||||
|
|
Loading…
Reference in a new issue