Calculate and use track pregaps.

This commit is contained in:
2020-01-01 21:50:49 +00:00
parent 727afd3e79
commit 912ab555fb
2 changed files with 115 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ namespace DiscImageChef.Core.Devices.Dumping
{
/// <summary>Implement dumping Compact Discs</summary>
// TODO: Barcode and pregaps
// TODO: Barcode
partial class Dump
{
/// <summary>Dumps a compact disc</summary>
@@ -345,6 +345,8 @@ namespace DiscImageChef.Core.Devices.Dumping
if(tracks is null)
return;
SolveTrackPregaps(tracks, supportsPqSubchannel, supportsRwSubchannel);
for(int t = 1; t < tracks.Length; t++)
tracks[t - 1].TrackEndSector = tracks[t].TrackStartSector - 1;