SongSelect: Session sound effects play in appropriate sound channels

This commit is contained in:
LoveEevee
2020-03-16 15:22:16 +03:00
parent 33b9b206a7
commit a25e108a4b
4 changed files with 33 additions and 22 deletions

View File

@@ -6,7 +6,11 @@ class Controller{
this.saveScore = !autoPlayEnabled
this.multiplayer = multiplayer
this.touchEnabled = touchEnabled
this.snd = this.multiplayer ? "_p" + this.multiplayer : ""
if(multiplayer === 2){
this.snd = p2.player === 2 ? "_p1" : "_p2"
}else{
this.snd = multiplayer ? "_p" + p2.player : ""
}
this.calibrationMode = selectedSong.folder === "calibration"
this.audioLatency = 0