CUERipper update;

CTDB xml interface;
Minor bugfixes;
Version 2.0.6-2.0.7
This commit is contained in:
chudov
2010-03-20 07:09:07 +00:00
parent ff3259e08a
commit f01d0b5241
74 changed files with 4203 additions and 1392 deletions

View File

@@ -325,10 +325,13 @@ namespace CUETools.CDRepair
new public unsafe void Write(AudioBuffer sampleBuffer)
{
if (!verify && !encode)
return;
sampleBuffer.Prepare(this);
if ((sampleBuffer.ByteLength & 1) != 0)
throw new Exception("never happens");
if ((sampleBuffer.ByteLength & 1) != 0 || sampleCount + sampleBuffer.Length > finalSampleCount)
throw new Exception("sampleCount > finalSampleCount");
fixed (byte* bytes = sampleBuffer.Bytes)
{