/[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 1199 by persson, Sun May 20 10:11:39 2007 UTC revision 1207 by persson, Sat May 26 13:59:40 2007 UTC
# Line 323  namespace gig { Line 323  namespace gig {
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;
# Line 585  namespace gig { Line 592  namespace gig {
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();

Legend:
Removed from v.1199  
changed lines
  Added in v.1207

  ViewVC Help
Powered by ViewVC