Add option to select dump speed for MMC devices. Fixes #218

This commit is contained in:
2019-12-26 03:45:09 +00:00
parent 889de634fd
commit 2884a14ac6
9 changed files with 1084 additions and 2876 deletions

View File

@@ -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;