subtract warm up time instead of add
This commit is contained in:
@@ -148,7 +148,7 @@ AFRAME.registerComponent('beat-loader', {
|
|||||||
if (this.beatsTimeOffset !== undefined &&
|
if (this.beatsTimeOffset !== undefined &&
|
||||||
this.songCurrentTime !== this.el.components.song.context.currentTime) {
|
this.songCurrentTime !== this.el.components.song.context.currentTime) {
|
||||||
this.songCurrentTime = this.el.components.song.context.currentTime;
|
this.songCurrentTime = this.el.components.song.context.currentTime;
|
||||||
this.beatsTime = (this.songCurrentTime + this.data.beatAnticipationTime) * 1000 +
|
this.beatsTime = (this.songCurrentTime + this.data.beatAnticipationTime) * 1000 -
|
||||||
BEAT_WARMUP_TIME;
|
BEAT_WARMUP_TIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user