/[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 55 by schoenebeck, Tue Apr 27 09:06:07 2004 UTC revision 384 by schoenebeck, Thu Feb 17 02:22:26 2005 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file loader library    *   *   libgig - C++ cross-platform Gigasampler format file loader library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Christian Schoenebeck                     *   *   Copyright (C) 2003-2005 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  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 290  namespace DLS { Line 290  namespace DLS {
290              Connection*  pConnections; ///< Points to the beginning of a <i>Connection</i> array.              Connection*  pConnections; ///< Points to the beginning of a <i>Connection</i> array.
291              uint32_t     Connections;  ///< Reflects the number of Connections.              uint32_t     Connections;  ///< Reflects the number of Connections.
292              Articulation(RIFF::List* artList);              Articulation(RIFF::List* artList);
293             ~Articulation();              virtual ~Articulation();
294      };      };
295    
296      /** Abstract base class for classes that provide articulation information (thus for <i>Instrument</i> and <i>Region</i> class). */      /** Abstract base class for classes that provide articulation information (thus for <i>Instrument</i> and <i>Region</i> class). */
# Line 306  namespace DLS { Line 306  namespace DLS {
306              ArticulationList::iterator  ArticulationsIterator;              ArticulationList::iterator  ArticulationsIterator;
307    
308              void LoadArticulations();              void LoadArticulations();
309             ~Articulator();              virtual ~Articulator();
310      };      };
311    
312      /** Optional information for DLS files, instruments, samples, etc. */      /** Optional information for DLS files, instruments, samples, etc. */
# Line 352  namespace DLS { Line 352  namespace DLS {
352              Resource* pParent;              Resource* pParent;
353    
354              Resource(Resource* Parent, RIFF::List* lstResource);              Resource(Resource* Parent, RIFF::List* lstResource);
355             ~Resource();              virtual ~Resource();
356      };      };
357    
358      /** Abstract base class which provides mandatory informations about sample players in general. */      /** Abstract base class which provides mandatory informations about sample players in general. */
# Line 368  namespace DLS { Line 368  namespace DLS {
368          protected:          protected:
369              uint32_t       SamplerOptions;              uint32_t       SamplerOptions;
370              Sampler(RIFF::List* ParentList);              Sampler(RIFF::List* ParentList);
371             ~Sampler();              virtual ~Sampler();
372      };      };
373    
374      /** Encapsulates sample waves used for playback. */      /** Encapsulates sample waves used for playback. */
# Line 417  namespace DLS { Line 417  namespace DLS {
417              Sample*     pSample;            // every region refers to exactly one sample              Sample*     pSample;            // every region refers to exactly one sample
418    
419              Region(Instrument* pInstrument, RIFF::List* rgnList);              Region(Instrument* pInstrument, RIFF::List* rgnList);
420             ~Region();              virtual ~Region();
421              friend class Instrument;              friend class Instrument;
422      };      };
423    
# Line 446  namespace DLS { Line 446  namespace DLS {
446    
447              Instrument(File* pFile, RIFF::List* insList);              Instrument(File* pFile, RIFF::List* insList);
448              void LoadRegions();              void LoadRegions();
449             ~Instrument();              virtual ~Instrument();
450              friend class File;              friend class File;
451      };      };
452    
# Line 461  namespace DLS { Line 461  namespace DLS {
461              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.
462              Instrument* GetFirstInstrument(); ///< Returns a pointer to the first <i>Instrument</i> object of the file, <i>NULL</i> otherwise.              Instrument* GetFirstInstrument(); ///< Returns a pointer to the first <i>Instrument</i> object of the file, <i>NULL</i> otherwise.
463              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.
464             ~File();              virtual ~File();
465          protected:          protected:
466              typedef std::list<Sample*>     SampleList;              typedef std::list<Sample*>     SampleList;
467              typedef std::list<Instrument*> InstrumentList;              typedef std::list<Instrument*> InstrumentList;

Legend:
Removed from v.55  
changed lines
  Added in v.384

  ViewVC Help
Powered by ViewVC