mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Do not try to read as audio data sectors with medium error.
This commit is contained in:
@@ -166,10 +166,12 @@ namespace Aaru.Core.Devices.Dumping
|
||||
{
|
||||
if(j > (ulong)lastSector)
|
||||
{
|
||||
if(!failedCrossingLeadOut)
|
||||
if(!failedCrossingLeadOut &&
|
||||
!inData)
|
||||
blocksToRead += (uint)sectorsForOffset;
|
||||
|
||||
if(sectorsForOffset > 0)
|
||||
if(sectorsForOffset > 0 &&
|
||||
!inData)
|
||||
crossingLeadOut = true;
|
||||
|
||||
break;
|
||||
@@ -232,16 +234,16 @@ namespace Aaru.Core.Devices.Dumping
|
||||
}
|
||||
}
|
||||
|
||||
if(!inData &&
|
||||
currentReadSpeed == 0xFFFF)
|
||||
{
|
||||
_dumpLog.WriteLine("Setting speed to 8x for audio reading.");
|
||||
UpdateStatus?.Invoke("Setting speed to 8x for audio reading.");
|
||||
/* if(!inData &&
|
||||
currentReadSpeed == 0xFFFF)
|
||||
{
|
||||
_dumpLog.WriteLine("Setting speed to 8x for audio reading.");
|
||||
UpdateStatus?.Invoke("Setting speed to 8x for audio reading.");
|
||||
|
||||
_dev.SetCdSpeed(out _, RotationalControl.ClvAndImpureCav, 1416, 0, _dev.Timeout, out _);
|
||||
_dev.SetCdSpeed(out _, RotationalControl.ClvAndImpureCav, 1416, 0, _dev.Timeout, out _);
|
||||
|
||||
currentReadSpeed = 1200;
|
||||
}
|
||||
currentReadSpeed = 1200;
|
||||
}*/
|
||||
|
||||
if(inData && currentReadSpeed != _speed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user