fix subsequent audio preview plays after playing

This commit is contained in:
Kevin Ngo
2018-12-10 03:49:45 -08:00
parent 0934ff831d
commit 1d3253ffa4

View File

@@ -173,6 +173,7 @@ AFRAME.registerComponent('song-preview-system', {
this.audio = this.audioStore[challengeId];
audioanalyser.resumeContext();
this.audio.currentTime = this.audio.dataset.previewStartTime;
this.audio.load();
this.audio.play();
this.fadeIn();
this.updateAnalyser();