/[svn]/libgig/trunk/src/gig.h
ViewVC logotype

Diff of /libgig/trunk/src/gig.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2985 by schoenebeck, Tue Sep 20 22:13:37 2016 UTC revision 2989 by schoenebeck, Sat Sep 24 14:00:46 2016 UTC
# Line 671  namespace gig { Line 671  namespace gig {
671              virtual void  UpdateChunks(progress_t* pProgress);              virtual void  UpdateChunks(progress_t* pProgress);
672              void CopyAssignMeta(const Sample* orig);              void CopyAssignMeta(const Sample* orig);
673              void CopyAssignWave(const Sample* orig);              void CopyAssignWave(const Sample* orig);
674              bool VerifyWaveData();              uint32_t GetWaveDataCRC32Checksum();
675                bool VerifyWaveData(uint32_t* pActually = NULL);
676          protected:          protected:
677              static size_t        Instances;               ///< Number of instances of class Sample.              static size_t        Instances;               ///< Number of instances of class Sample.
678              static buffer_t      InternalDecompressionBuffer; ///< Buffer used for decompression as well as for truncation of 24 Bit -> 16 Bit samples.              static buffer_t      InternalDecompressionBuffer; ///< Buffer used for decompression as well as for truncation of 24 Bit -> 16 Bit samples.
# Line 686  namespace gig { Line 687  namespace gig {
687              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)
688              RIFF::Chunk*         pCk3gix;              RIFF::Chunk*         pCk3gix;
689              RIFF::Chunk*         pCkSmpl;              RIFF::Chunk*         pCkSmpl;
690              uint32_t             crc;                     ///< CRC-32 checksum of the raw sample data              uint32_t             crc;                     ///< Reflects CRC-32 checksum of the raw sample data at the last time when the sample's raw wave form data has been modified consciously by the user by calling Write().
691    
692              Sample(File* pFile, RIFF::List* waveList, file_offset_t WavePoolOffset, unsigned long fileNo = 0);              Sample(File* pFile, RIFF::List* waveList, file_offset_t WavePoolOffset, unsigned long fileNo = 0, int index = -1);
693             ~Sample();             ~Sample();
694              uint32_t CalculateWaveDataChecksum();              uint32_t CalculateWaveDataChecksum();
695    
# Line 1270  namespace gig { Line 1271  namespace gig {
1271              virtual void LoadScriptGroups();              virtual void LoadScriptGroups();
1272              void SetSampleChecksum(Sample* pSample, uint32_t crc);              void SetSampleChecksum(Sample* pSample, uint32_t crc);
1273              uint32_t GetSampleChecksum(Sample* pSample);              uint32_t GetSampleChecksum(Sample* pSample);
1274                uint32_t GetSampleChecksumByIndex(int index);
1275              bool VerifySampleChecksumTable();              bool VerifySampleChecksumTable();
1276              bool RebuildSampleChecksumTable();              bool RebuildSampleChecksumTable();
1277              int  GetWaveTableIndexOf(gig::Sample* pSample);              int  GetWaveTableIndexOf(gig::Sample* pSample);

Legend:
Removed from v.2985  
changed lines
  Added in v.2989

  ViewVC Help
Powered by ViewVC