mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUERipper update;
CTDB xml interface; Minor bugfixes; Version 2.0.6-2.0.7
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user