mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add option to select dump speed for MMC devices. Fixes #218
This commit is contained in:
@@ -1540,6 +1540,21 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
audioExtents.Add(audioTrack.TrackStartSector, audioTrack.TrackEndSector);
|
||||
}
|
||||
|
||||
// Set speed
|
||||
if(_speedMultiplier >= 0)
|
||||
{
|
||||
_dumpLog.WriteLine($"Setting speed to {_speed}x.");
|
||||
UpdateStatus?.Invoke($"Setting speed to {_speed}x.");
|
||||
|
||||
_speed *= _speedMultiplier;
|
||||
|
||||
if(_speed == 0 ||
|
||||
_speed > 0xFFFF)
|
||||
_speed = 0xFFFF;
|
||||
|
||||
_dev.SetCdSpeed(out _, RotationalControl.ClvAndImpureCav, (ushort)_speed, 0, _dev.Timeout, out _);
|
||||
}
|
||||
|
||||
// Start reading
|
||||
start = DateTime.UtcNow;
|
||||
currentSpeed = 0;
|
||||
|
||||
Reference in New Issue
Block a user