#include <gig.h>
Inheritance diagram for gig::File:
Public Member Functions | |
File (RIFF::File *pRIFF) | |
Sample * | GetFirstSample (progress_t *pProgress=NULL) |
Returns a pointer to the first Sample object of the file, NULL otherwise. | |
Sample * | GetNextSample () |
Returns a pointer to the next Sample object of the file, NULL otherwise. | |
Instrument * | GetFirstInstrument () |
Returns a pointer to the first Instrument object of the file, NULL otherwise. | |
Instrument * | GetNextInstrument () |
Returns a pointer to the next Instrument object of the file, NULL otherwise. | |
Instrument * | GetInstrument (uint index, progress_t *pProgress=NULL) |
Returns the instrument with the given index. | |
~File () | |
Protected Types | |
typedef std::list< Sample * > | SampleList |
typedef std::list< Instrument * > | InstrumentList |
Protected Member Functions | |
void | LoadSamples (progress_t *pProgress=NULL) |
void | LoadInstruments (progress_t *pProgress=NULL) |
Sample * | GetFirstSample () |
Returns a pointer to the first Sample object of the file, NULL otherwise. | |
void | LoadSamples () |
void | LoadInstruments () |
Resource * | GetParent () |
Protected Attributes | |
SampleList * | pSamples |
SampleList::iterator | SamplesIterator |
InstrumentList * | pInstruments |
InstrumentList::iterator | InstrumentsIterator |
std::list< RIFF::File * > | ExtensionFiles |
version_t * | pVersion |
Points to a version_t structure if the file provided a version number else is set to NULL. | |
uint32_t | Instruments |
Reflects the number of available Instrument objects. | |
RIFF::File * | pRIFF |
uint32_t | WavePoolCount |
uint32_t * | pWavePoolTable |
uint32_t * | pWavePoolTableHi |
Info * | pInfo |
Points (in any case) to an Info object, providing additional, optional infos and comments. | |
dlsid_t * | pDLSID |
Points to a dlsid_t structure if the file provided a DLS ID else is NULL. | |
Resource * | pParent |
Friends | |
class | Region |
Definition at line 700 of file gig.h.
|
Reimplemented from DLS::File. |
|
Reimplemented from DLS::File. |
|
Reimplemented from DLS::File. Definition at line 1749 of file gig.cpp. References pInstruments, and pSamples. |
|
Reimplemented from DLS::File. Definition at line 1754 of file gig.cpp. References ExtensionFiles, InstrumentsIterator, pInstruments, pSamples, and SamplesIterator. |
|
Returns a pointer to the first Instrument object of the file, NULL otherwise.
Reimplemented from DLS::File. Definition at line 1846 of file gig.cpp. References InstrumentsIterator, DLS::File::LoadInstruments(), and pInstruments. Referenced by PrintInstruments(). |
|
Returns a pointer to the first Sample object of the file, NULL otherwise.
Definition at line 463 of file DLS.cpp. References DLS::File::LoadSamples(), DLS::File::pSamples, and DLS::File::SamplesIterator. Referenced by GetInstrument(), DLS::Region::GetSample(), and PrintSamples(). |
|
Returns a pointer to the first Sample object of the file, NULL otherwise.
Definition at line 1781 of file gig.cpp. References DLS::File::LoadSamples(), pSamples, and SamplesIterator. Referenced by ExtractSamples(), gig::Region::GetSampleFromWavePool(), and PrintSamples(). |
|
Returns the instrument with the given index.
Definition at line 1866 of file gig.cpp. References gig::__divide_progress(), gig::__notify_progress(), gig::progress_t::__range_max, gig::progress_t::__range_min, gig::progress_t::callback, DLS::File::GetFirstSample(), InstrumentsIterator, DLS::File::LoadInstruments(), and pInstruments. |
|
Returns a pointer to the next Instrument object of the file, NULL otherwise.
Reimplemented from DLS::File. Definition at line 1853 of file gig.cpp. References InstrumentsIterator, and pInstruments. Referenced by PrintInstruments(). |
|
Returns a pointer to the next Sample object of the file, NULL otherwise.
Reimplemented from DLS::File. Definition at line 1788 of file gig.cpp. References pSamples, and SamplesIterator. Referenced by ExtractSamples(), gig::Region::GetSampleFromWavePool(), and PrintSamples(). |
|
Definition at line 350 of file DLS.h. Referenced by DLS::Region::GetSample(), gig::Region::GetSampleFromWavePool(), and gig::Region::Region(). |
|
Definition at line 520 of file DLS.cpp. References RIFF::List::GetFirstSubList(), RIFF::List::GetListType(), RIFF::List::GetNextSubList(), RIFF::List::GetSubList(), LIST_TYPE_INS, LIST_TYPE_LINS, DLS::File::pInstruments, and DLS::File::pRIFF. Referenced by GetFirstInstrument(), DLS::File::GetFirstInstrument(), and GetInstrument(). |
|
Definition at line 1895 of file gig.cpp. References gig::__divide_progress(), gig::__notify_progress(), RIFF::List::GetFirstSubList(), RIFF::List::GetListType(), RIFF::List::GetNextSubList(), RIFF::List::GetSubList(), DLS::File::Instruments, LIST_TYPE_INS, LIST_TYPE_LINS, pInstruments, and DLS::File::pRIFF. |
|
Definition at line 476 of file DLS.cpp. References RIFF::Chunk::GetFilePos(), RIFF::List::GetFirstSubList(), RIFF::List::GetListType(), RIFF::List::GetNextSubList(), RIFF::List::GetSubList(), LIST_TYPE_DWPL, LIST_TYPE_WAVE, LIST_TYPE_WVPL, DLS::File::pRIFF, and DLS::File::pSamples. Referenced by GetFirstSample(), and DLS::File::GetFirstSample(). |
|
|
Reimplemented from DLS::File. |
|
Definition at line 732 of file gig.h. Referenced by LoadSamples(), and ~File(). |
|
Reflects the number of available Instrument objects.
Definition at line 457 of file DLS.h. Referenced by DLS::File::File(), and LoadInstruments(). |
|
Reimplemented from DLS::File. Definition at line 726 of file gig.h. Referenced by GetFirstInstrument(), GetInstrument(), GetNextInstrument(), and ~File(). |
|
Points to a dlsid_t structure if the file provided a DLS ID else is NULL.
Definition at line 348 of file DLS.h. Referenced by DLS::Resource::Resource(), and DLS::Resource::~Resource(). |
|
Points (in any case) to an Info object, providing additional, optional infos and comments.
Definition at line 347 of file DLS.h. Referenced by ExtractSamples(), main(), PrintDimensionRegions(), PrintInstruments(), PrintRegions(), PrintSamples(), DLS::Resource::Resource(), and DLS::Resource::~Resource(). |
|
Reimplemented from DLS::File. Definition at line 725 of file gig.h. Referenced by File(), GetFirstInstrument(), GetInstrument(), GetNextInstrument(), LoadInstruments(), and ~File(). |
|
Definition at line 350 of file DLS.h. Referenced by DLS::Resource::Resource(). |
|
Definition at line 469 of file DLS.h. Referenced by LoadInstruments(), DLS::File::LoadInstruments(), LoadSamples(), and DLS::File::LoadSamples(). |
|
Reimplemented from DLS::File. Definition at line 723 of file gig.h. Referenced by File(), GetFirstSample(), GetNextSample(), LoadSamples(), and ~File(). |
|
Points to a version_t structure if the file provided a version number else is set to NULL.
Definition at line 456 of file DLS.h. Referenced by DLS::File::File(), gig::Region::Region(), and DLS::File::~File(). |
|
Definition at line 475 of file DLS.h. Referenced by DLS::File::File(), DLS::Region::GetSample(), gig::Region::GetSampleFromWavePool(), and DLS::File::~File(). |
|
Definition at line 476 of file DLS.h. Referenced by DLS::File::File(), gig::Region::GetSampleFromWavePool(), LoadSamples(), and DLS::File::~File(). |
|
Reimplemented from DLS::File. Definition at line 724 of file gig.h. Referenced by GetFirstSample(), GetNextSample(), and ~File(). |
|
Definition at line 474 of file DLS.h. Referenced by DLS::File::File(), and LoadSamples(). |