bugfix for ape

This commit is contained in:
chudov
2008-11-09 14:01:15 +00:00
parent da7fe1edfe
commit 2fbcf9575e
3 changed files with 78 additions and 4 deletions

View File

@@ -327,8 +327,10 @@ namespace CUEToolsLib {
copyCount = Math.Min(samplesNeeded, SamplesInBuffer);
APESamplesToFLACSamples(_sampleBuffer, _bufferOffset, buff, buffOffset,
copyCount, chanCount);
Array.Copy(_sampleBuffer, _bufferOffset * chanCount, buff, buffOffset * chanCount, copyCount * chanCount);
//APESamplesToFLACSamples(_sampleBuffer, _bufferOffset, buff, buffOffset,
// copyCount, chanCount);
samplesNeeded -= copyCount;
buffOffset += copyCount;