diff --git a/src/general/Jukebox.cs b/src/general/Jukebox.cs index 30a13b4a7cf..4e731bfbd8f 100644 --- a/src/general/Jukebox.cs +++ b/src/general/Jukebox.cs @@ -126,16 +126,6 @@ public override void _Process(float delta) if (operations.Peek().Action(delta)) operations.Dequeue(); } - - // // Check if a stream has ended - // foreach (var player in audioPlayers) - // { - // if (!player.Playing) - // { - // OnSomeTrackEnded(); - // break; - // } - // } } private void UpdateStreamsPauseStatus() @@ -264,7 +254,7 @@ private void AddFadeOut() bool finished = data.TimeLeft <= 0; - if (finished) + if (!finished) { AdjustVolume(FADE_PER_TIME_UNIT * delta); } @@ -286,7 +276,7 @@ private void AddFadeIn() bool finished = data.TimeLeft <= 0; - if (finished) + if (!finished) { AdjustVolume(-1 * FADE_PER_TIME_UNIT * delta); }