Skip to content

Commit 18a7059

Browse files
committed
fix: updated sid start logic so that speed command is not triggered if the SID speed is 0.
1 parent 4d08f99 commit 18a7059

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Windows/TeensyRom.Ui/src/TeensyRom.Ui/Controls/PlayToolbar/PlayToolbarViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,19 +988,19 @@ private async Task StartSong(SongItem s)
988988
TimedPlayComboBoxEnabled = false;
989989
ProgressEnabled = true;
990990

991-
if (s.Custom is not null)
991+
if (s.Custom is not null && s.Custom.DefaultSpeedCurve != 0)
992992
{
993993
await Task.Delay(300);
994994
SelectedSpeedCurve = s.Custom.DefaultSpeedCurve;
995995
_forceSpeedChange = true;
996996
SetSpeed(s.Custom.DefaultSpeed);
997997
}
998-
else
998+
else if(_rawSpeedValue.Value != 0)
999999
{
10001000
await Task.Delay(300);
10011001
SelectedSpeedCurve = MusicSpeedCurveTypes.Linear;
10021002
SetSpeed(0);
1003-
}
1003+
}
10041004
_previousRawSpeed = _rawSpeedValue.Value;
10051005
InitializeProgress(s);
10061006
}

0 commit comments

Comments
 (0)