mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Add track-readahead
This commit is contained in:
@@ -324,6 +324,11 @@ namespace RedBookPlayer.Models.Discs
|
|||||||
|
|
||||||
// Select the first index that has a sector offset greater than or equal to 0
|
// Select the first index that has a sector offset greater than or equal to 0
|
||||||
CurrentSector = (ulong)(track?.Indexes.OrderBy(kvp => kvp.Key).First(kvp => kvp.Value >= 0).Value ?? 0);
|
CurrentSector = (ulong)(track?.Indexes.OrderBy(kvp => kvp.Key).First(kvp => kvp.Value >= 0).Value ?? 0);
|
||||||
|
|
||||||
|
// Load and debug output
|
||||||
|
uint sectorCount = (uint)(track.TrackEndSector - track.TrackStartSector);
|
||||||
|
byte[] trackData = ReadSectors(sectorCount);
|
||||||
|
Console.WriteLine($"DEBUG: Track {trackNumber} - {sectorCount} sectors / {trackData.Length} bytes");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
|
|||||||
Reference in New Issue
Block a user