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,10 +343,13 @@ namespace RedBookPlayer
return; return;
} }
if (CurrentSector < (ulong)Image.Tracks[CurrentTrack].Indexes[1] + 75)
{
if (--CurrentTrack < 0) if (--CurrentTrack < 0)
{ {
CurrentTrack = Image.Tracks.Count - 1; CurrentTrack = Image.Tracks.Count - 1;
} }
}
LoadTrack(CurrentTrack); LoadTrack(CurrentTrack);
} }