|
|
@ -97,10 +97,10 @@ class HuesCore { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
frame : [], |
|
|
|
frame : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback songstarted() |
|
|
|
/* callback songstarted(song) |
|
|
|
* |
|
|
|
* |
|
|
|
* Called when the song actually begins to play, not just when the |
|
|
|
* Called when the song actually begins to play, not just when the |
|
|
|
* new song processing begins |
|
|
|
* new song processing begins. Song object passed. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
songstarted : [], |
|
|
|
songstarted : [], |
|
|
|
|
|
|
|
|
|
|
@ -524,12 +524,12 @@ class HuesCore { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.setInvert(false); |
|
|
|
this.setInvert(false); |
|
|
|
this.renderer.doBlackout(); |
|
|
|
this.renderer.doInstantBlackout(); |
|
|
|
return this.soundManager.playSong(this.currentSong, this.doBuildup) |
|
|
|
return this.soundManager.playSong(this.currentSong, this.doBuildup) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
this.resetAudio(); |
|
|
|
this.resetAudio(); |
|
|
|
this.fillBuildup(); |
|
|
|
this.fillBuildup(); |
|
|
|
this.callEventListeners("songstarted"); |
|
|
|
this.callEventListeners("songstarted", this.currentSong); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|