323 |
progress_t(); |
progress_t(); |
324 |
}; |
}; |
325 |
|
|
326 |
|
/** @brief CRC-32 checksum implementation |
327 |
|
* |
328 |
|
* This class is used to calculate checksums of the sample data in |
329 |
|
* a gig file. The checksums are stored in the 3crc chunk of the |
330 |
|
* gig file and automatically updated when a sample is written |
331 |
|
* with Sample::Write(). |
332 |
|
*/ |
333 |
class CRC { |
class CRC { |
334 |
private: |
private: |
335 |
uint32_t value; |
uint32_t value; |
592 |
unsigned long FileNo; ///< File number (> 0 when sample is stored in an extension file, 0 when it's in the gig) |
unsigned long FileNo; ///< File number (> 0 when sample is stored in an extension file, 0 when it's in the gig) |
593 |
RIFF::Chunk* pCk3gix; |
RIFF::Chunk* pCk3gix; |
594 |
RIFF::Chunk* pCkSmpl; |
RIFF::Chunk* pCkSmpl; |
595 |
CRC crc; |
CRC crc; ///< CRC-32 checksum of the raw sample data |
596 |
|
|
597 |
Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset, unsigned long fileNo = 0); |
Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset, unsigned long fileNo = 0); |
598 |
~Sample(); |
~Sample(); |