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

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

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

revision 929 by schoenebeck, Tue Oct 24 22:24:45 2006 UTC revision 1102 by persson, Sun Mar 18 07:13:06 2007 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file loader library    *   *   libgig - C++ cross-platform Gigasampler format file access library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003-2006 by Christian Schoenebeck                      *   *   Copyright (C) 2003-2007 by Christian Schoenebeck                      *
6   *                              <cuse@users.sourceforge.net>               *   *                              <cuse@users.sourceforge.net>               *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
# Line 112  Line 112 
112  # define CHUNK_ID_ART2  0x32747261  # define CHUNK_ID_ART2  0x32747261
113  #endif // WORDS_BIGENDIAN  #endif // WORDS_BIGENDIAN
114    
115  #define WAVE_FORMAT_PCM                 0x0001  #define DLS_WAVE_FORMAT_PCM                     0x0001
116    
117  //TODO: no support for conditional chunks <cdl> yet  //TODO: no support for conditional chunks <cdl> yet
118    
# Line 374  namespace DLS { Line 374  namespace DLS {
374       */       */
375      class Sample : public Resource {      class Sample : public Resource {
376          public:          public:
377              uint16_t      FormatTag;             ///< Format ID of the waveform data (should be WAVE_FORMAT_PCM for DLS1 compliant files, this is also the default value if Sample was created with Instrument::AddSample()).              uint16_t      FormatTag;             ///< Format ID of the waveform data (should be DLS_WAVE_FORMAT_PCM for DLS1 compliant files, this is also the default value if Sample was created with Instrument::AddSample()).
378              uint16_t      Channels;              ///< Number of channels represented in the waveform data, e.g. 1 for mono, 2 for stereo (defaults to 1=mono if Sample was created with Instrument::AddSample() previously).              uint16_t      Channels;              ///< Number of channels represented in the waveform data, e.g. 1 for mono, 2 for stereo (defaults to 1=mono if Sample was created with Instrument::AddSample() previously).
379              uint32_t      SamplesPerSecond;      ///< Sampling rate at which each channel should be played (defaults to 44100 if Sample was created with Instrument::AddSample() previously).              uint32_t      SamplesPerSecond;      ///< Sampling rate at which each channel should be played (defaults to 44100 if Sample was created with Instrument::AddSample() previously).
380              uint32_t      AverageBytesPerSecond; ///< The average number of bytes per second at which the waveform data should be transferred (Playback software can estimate the buffer size using this value).              uint32_t      AverageBytesPerSecond; ///< The average number of bytes per second at which the waveform data should be transferred (Playback software can estimate the buffer size using this value).
# Line 444  namespace DLS { Line 444  namespace DLS {
444              Region*  GetFirstRegion();              Region*  GetFirstRegion();
445              Region*  GetNextRegion();              Region*  GetNextRegion();
446              Region*  AddRegion();              Region*  AddRegion();
447                void     MoveRegion(Region* pSrc, Region* pDst);
448              void     DeleteRegion(Region* pRegion);              void     DeleteRegion(Region* pRegion);
449              virtual void UpdateChunks();              virtual void UpdateChunks();
450          protected:          protected:
# Line 508  namespace DLS { Line 509  namespace DLS {
509              void __UpdateWavePoolTable();              void __UpdateWavePoolTable();
510      };      };
511    
512      /** Will be thrown whenever a DLS specific error occurs while trying to access a DLS File. */      /**
513         * Will be thrown whenever a DLS specific error occurs while trying to
514         * access a DLS File. Note: In your application you should better catch
515         * for RIFF::Exception rather than this one, except you explicitly want
516         * to catch and handle DLS::Exception and RIFF::Exception independently,
517         * which usually shouldn't be necessary though.
518         */
519      class Exception : public RIFF::Exception {      class Exception : public RIFF::Exception {
520          public:          public:
521              Exception(String Message);              Exception(String Message);

Legend:
Removed from v.929  
changed lines
  Added in v.1102

  ViewVC Help
Powered by ViewVC