/[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 2044 by persson, Sun Jan 10 12:58:51 2010 UTC revision 2394 by schoenebeck, Mon Jan 7 23:23:58 2013 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file access library    *   *   libgig - C++ cross-platform Gigasampler format file access library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003-2010 by Christian Schoenebeck                      *   *   Copyright (C) 2003-2013 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 270  namespace DLS { Line 270  namespace DLS {
270              Articulation* GetFirstArticulation();              Articulation* GetFirstArticulation();
271              Articulation* GetNextArticulation();              Articulation* GetNextArticulation();
272              virtual void  UpdateChunks();              virtual void  UpdateChunks();
273                virtual void  CopyAssign(const Articulator* orig);
274          protected:          protected:
275              typedef std::list<Articulation*> ArticulationList;              typedef std::list<Articulation*> ArticulationList;
276              RIFF::List*                 pParentList;              RIFF::List*                 pParentList;
# Line 311  namespace DLS { Line 312  namespace DLS {
312              void SetFixedStringLengths(const string_length_t* lengths);              void SetFixedStringLengths(const string_length_t* lengths);
313              virtual ~Info();              virtual ~Info();
314              virtual void UpdateChunks();              virtual void UpdateChunks();
315                virtual void CopyAssign(const Info* orig);
316          private:          private:
317              RIFF::List*            pResourceListChunk;              RIFF::List*            pResourceListChunk;
318              const string_length_t* pFixedStringLengths; ///< List of IDs and string lengths for strings that should be stored in a fixed length format. This is used for gig files, not for ordinary DLS files.              const string_length_t* pFixedStringLengths; ///< List of IDs and string lengths for strings that should be stored in a fixed length format. This is used for gig files, not for ordinary DLS files.
# Line 328  namespace DLS { Line 330  namespace DLS {
330              Resource* GetParent() { return pParent; }              Resource* GetParent() { return pParent; }
331              virtual void UpdateChunks();              virtual void UpdateChunks();
332              void GenerateDLSID();              void GenerateDLSID();
333                virtual void CopyAssign(const Resource* orig);
334          protected:          protected:
335              Resource* pParent;              Resource* pParent;
336              RIFF::List* pResourceList;              RIFF::List* pResourceList;
# Line 351  namespace DLS { Line 354  namespace DLS {
354              void DeleteSampleLoop(sample_loop_t* pLoopDef);              void DeleteSampleLoop(sample_loop_t* pLoopDef);
355              virtual void SetGain(int32_t gain);              virtual void SetGain(int32_t gain);
356              virtual void UpdateChunks();              virtual void UpdateChunks();
357                virtual void CopyAssign(const Sampler* orig);
358          protected:          protected:
359              RIFF::List*    pParentList;              RIFF::List*    pParentList;
360              uint32_t       uiHeaderSize;              uint32_t       uiHeaderSize;
# Line 415  namespace DLS { Line 419  namespace DLS {
419              void        SetSample(Sample* pSample);              void        SetSample(Sample* pSample);
420              virtual void SetKeyRange(uint16_t Low, uint16_t High);              virtual void SetKeyRange(uint16_t Low, uint16_t High);
421              virtual void UpdateChunks();              virtual void UpdateChunks();
422                virtual void CopyAssign(const Region* orig);
423          protected:          protected:
424              RIFF::List* pCkRegion;              RIFF::List* pCkRegion;
425              uint32_t    WavePoolTableIndex; // index in the wave pool table to the sample wave this region is linked to              uint32_t    WavePoolTableIndex; // index in the wave pool table to the sample wave this region is linked to
# Line 442  namespace DLS { Line 447  namespace DLS {
447              Region*  AddRegion();              Region*  AddRegion();
448              void     DeleteRegion(Region* pRegion);              void     DeleteRegion(Region* pRegion);
449              virtual void UpdateChunks();              virtual void UpdateChunks();
450                virtual void CopyAssign(const Instrument* orig);
451          protected:          protected:
452              typedef std::list<Region*> RegionList;              typedef std::list<Region*> RegionList;
453              struct midi_locale_t {              struct midi_locale_t {
# Line 454  namespace DLS { Line 460  namespace DLS {
460              RegionList::iterator RegionsIterator;              RegionList::iterator RegionsIterator;
461    
462              Instrument(File* pFile, RIFF::List* insList);              Instrument(File* pFile, RIFF::List* insList);
463                void CopyAssignCore(const Instrument* orig);
464              virtual void LoadRegions();              virtual void LoadRegions();
465              virtual ~Instrument();              virtual ~Instrument();
466              friend class File;              friend class File;
# Line 470  namespace DLS { Line 477  namespace DLS {
477    
478              File();              File();
479              File(RIFF::File* pRIFF);              File(RIFF::File* pRIFF);
480                String      GetFileName();
481              Sample*     GetFirstSample();     ///< Returns a pointer to the first <i>Sample</i> object of the file, <i>NULL</i> otherwise.              Sample*     GetFirstSample();     ///< Returns a pointer to the first <i>Sample</i> object of the file, <i>NULL</i> otherwise.
482              Sample*     GetNextSample();      ///< Returns a pointer to the next <i>Sample</i> object of the file, <i>NULL</i> otherwise.              Sample*     GetNextSample();      ///< Returns a pointer to the next <i>Sample</i> object of the file, <i>NULL</i> otherwise.
483              Sample*     AddSample();              Sample*     AddSample();
# Line 478  namespace DLS { Line 486  namespace DLS {
486              Instrument* GetNextInstrument();  ///< Returns a pointer to the next <i>Instrument</i> object of the file, <i>NULL</i> otherwise.              Instrument* GetNextInstrument();  ///< Returns a pointer to the next <i>Instrument</i> object of the file, <i>NULL</i> otherwise.
487              Instrument* AddInstrument();              Instrument* AddInstrument();
488              void        DeleteInstrument(Instrument* pInstrument);              void        DeleteInstrument(Instrument* pInstrument);
489                RIFF::File* GetExtensionFile(int index);
490              virtual void UpdateChunks();              virtual void UpdateChunks();
491              virtual void Save(const String& Path);              virtual void Save(const String& Path);
492              virtual void Save();              virtual void Save();

Legend:
Removed from v.2044  
changed lines
  Added in v.2394

  ViewVC Help
Powered by ViewVC