Only skip to previous track if within the first second of the current track

This commit is contained in:
deagahelio
2021-04-07 21:04:22 -03:00
parent 91fe7793cd
commit 93872798fb

View File

@@ -343,9 +343,12 @@ namespace RedBookPlayer
return;
}
if (--CurrentTrack < 0)
if (CurrentSector < (ulong)Image.Tracks[CurrentTrack].Indexes[1] + 75)
{
CurrentTrack = Image.Tracks.Count - 1;
if (--CurrentTrack < 0)
{
CurrentTrack = Image.Tracks.Count - 1;
}
}
LoadTrack(CurrentTrack);