mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Adjust pregap calculation.
This commit is contained in:
@@ -493,11 +493,7 @@ namespace Aaru.Core.Devices.Dumping
|
|||||||
// Pregap according to Q position
|
// Pregap according to Q position
|
||||||
posQ = ((subBuf[7] * 60 * 75) + (subBuf[8] * 75) + subBuf[9]) - 150;
|
posQ = ((subBuf[7] * 60 * 75) + (subBuf[8] * 75) + subBuf[9]) - 150;
|
||||||
int diff = posQ - lba;
|
int diff = posQ - lba;
|
||||||
int pregapQ = (subBuf[3] * 60 * 75) + (subBuf[4] * 75) + subBuf[5] + 1;
|
int pregapQ = (int)track.TrackStartSector - lba;
|
||||||
|
|
||||||
// If we obtained a Q from a previous sector, or we just came back from the previous track Q, sum the difference
|
|
||||||
if(diff < 0 || forward)
|
|
||||||
pregapQ += diff;
|
|
||||||
|
|
||||||
if(diff != 0)
|
if(diff != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user