482 |
ScanCompressedSample(); |
ScanCompressedSample(); |
483 |
} |
} |
484 |
|
|
485 |
// we use a buffer for decompression and for truncating 24 bit samples to 16 bit |
// we use a buffer for decompression only |
486 |
if ((Compressed || BitDepth == 24) && !InternalDecompressionBuffer.Size) { |
if (Compressed && !InternalDecompressionBuffer.Size) { |
487 |
InternalDecompressionBuffer.pStart = new unsigned char[INITIAL_SAMPLE_BUFFER_SIZE]; |
InternalDecompressionBuffer.pStart = new unsigned char[INITIAL_SAMPLE_BUFFER_SIZE]; |
488 |
InternalDecompressionBuffer.Size = INITIAL_SAMPLE_BUFFER_SIZE; |
InternalDecompressionBuffer.Size = INITIAL_SAMPLE_BUFFER_SIZE; |
489 |
} |
} |