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 * |
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). */ |
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. */ |
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. */ |
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. */ |
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 |
|
|
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 |
|
|
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; |