#include <DLS.h>
Inheritance diagram for DLS::File:
Public Member Functions | |
File (RIFF::File *pRIFF) | |
Sample * | GetFirstSample () |
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. | |
virtual | ~File () |
Resource * | GetParent () |
Public Attributes | |
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. | |
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. | |
Protected Types | |
typedef std::list< Sample * > | SampleList |
typedef std::list< Instrument * > | InstrumentList |
Protected Member Functions | |
void | LoadSamples () |
void | LoadInstruments () |
Protected Attributes | |
RIFF::File * | pRIFF |
SampleList * | pSamples |
SampleList::iterator | SamplesIterator |
InstrumentList * | pInstruments |
InstrumentList::iterator | InstrumentsIterator |
uint32_t | WavePoolCount |
uint32_t * | pWavePoolTable |
Resource * | pParent |
Friends | |
class | Region |
Definition at line 454 of file DLS.h.
|
Reimplemented in gig::File. |
|
Reimplemented in gig::File. |
|
Reimplemented in gig::File. Definition at line 396 of file DLS.cpp. References CHUNK_ID_COLH, CHUNK_ID_PTBL, CHUNK_ID_VERS, RIFF::Chunk::GetSize(), RIFF::List::GetSubChunk(), Instruments, pInstruments, pSamples, pVersion, pWavePoolTable, RIFF::Chunk::Read(), RIFF::Chunk::ReadUint32(), RIFF::Chunk::SetPos(), and WavePoolCount. |
|
Reimplemented in gig::File. Definition at line 434 of file DLS.cpp. References pInstruments, pSamples, pVersion, and pWavePoolTable. |
|
Returns a pointer to the first Instrument object of the file, NULL otherwise.
Reimplemented in gig::File. Definition at line 503 of file DLS.cpp. References InstrumentsIterator, LoadInstruments(), and pInstruments. Referenced by PrintInstruments(). |
|
Returns a pointer to the first Sample object of the file, NULL otherwise.
Definition at line 459 of file DLS.cpp. References LoadSamples(), pSamples, and SamplesIterator. Referenced by gig::File::GetInstrument(), DLS::Region::GetSample(), and PrintSamples(). |
|
Returns a pointer to the next Instrument object of the file, NULL otherwise.
Reimplemented in gig::File. Definition at line 510 of file DLS.cpp. References InstrumentsIterator, and pInstruments. Referenced by PrintInstruments(). |
|
Returns a pointer to the next Sample object of the file, NULL otherwise.
Reimplemented in gig::File. Definition at line 466 of file DLS.cpp. References pSamples, and SamplesIterator. Referenced by DLS::Region::GetSample(), 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 516 of file DLS.cpp. References RIFF::List::GetFirstSubList(), RIFF::List::GetListType(), RIFF::List::GetNextSubList(), RIFF::List::GetSubList(), LIST_TYPE_INS, LIST_TYPE_LINS, pInstruments, and pRIFF. Referenced by gig::File::GetFirstInstrument(), GetFirstInstrument(), and gig::File::GetInstrument(). |
|
Definition at line 472 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, pRIFF, and pSamples. Referenced by gig::File::GetFirstSample(), and GetFirstSample(). |
|
Reimplemented in gig::File. |
|
Reflects the number of available Instrument objects.
Definition at line 457 of file DLS.h. Referenced by File(), and gig::File::LoadInstruments(). |
|
Reimplemented in gig::File. Definition at line 473 of file DLS.h. Referenced by GetFirstInstrument(), and GetNextInstrument(). |
|
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 in gig::File. Definition at line 472 of file DLS.h. Referenced by File(), GetFirstInstrument(), 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 gig::File::LoadInstruments(), LoadInstruments(), gig::File::LoadSamples(), and LoadSamples(). |
|
Reimplemented in gig::File. Definition at line 470 of file DLS.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 File(), gig::Region::Region(), and ~File(). |
|
Definition at line 475 of file DLS.h. Referenced by File(), DLS::Region::GetSample(), gig::Region::GetSampleFromWavePool(), and ~File(). |
|
Reimplemented in gig::File. Definition at line 471 of file DLS.h. Referenced by GetFirstSample(), and GetNextSample(). |
|
Definition at line 474 of file DLS.h. Referenced by File(). |