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; |
478 |
protected: |
protected: |
479 |
uint8_t* VelocityTable; ///< For velocity dimensions with custom defined zone ranges only: used for fast converting from velocity MIDI value to dimension bit number. |
uint8_t* VelocityTable; ///< For velocity dimensions with custom defined zone ranges only: used for fast converting from velocity MIDI value to dimension bit number. |
480 |
DimensionRegion(RIFF::List* _3ewl); |
DimensionRegion(RIFF::List* _3ewl); |
481 |
|
DimensionRegion(RIFF::List* _3ewl, const DimensionRegion& src); |
482 |
~DimensionRegion(); |
~DimensionRegion(); |
483 |
friend class Region; |
friend class Region; |
484 |
private: |
private: |
593 |
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) |
594 |
RIFF::Chunk* pCk3gix; |
RIFF::Chunk* pCk3gix; |
595 |
RIFF::Chunk* pCkSmpl; |
RIFF::Chunk* pCkSmpl; |
596 |
CRC crc; |
CRC crc; ///< CRC-32 checksum of the raw sample data |
597 |
|
|
598 |
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); |
599 |
~Sample(); |
~Sample(); |