#include <DLS.h>
Public Member Functions | |
Resource * | GetParent () |
virtual void | UpdateChunks () |
Public Attributes | |
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 Member Functions | |
Resource (Resource *Parent, RIFF::List *lstResource) | |
virtual | ~Resource () |
Protected Attributes | |
Resource * | pParent |
RIFF::List * | pResourceList |
Definition at line 332 of file DLS.h.
DLS::Resource::Resource | ( | Resource * | Parent, | |
RIFF::List * | lstResource | |||
) | [protected] |
Constructor.
Initializes the 'Resource' object with values provided by a given INFO list chunk and a DLID chunk (the latter optional).
Parent | - pointer to parent 'Resource', NULL if this is the toplevel 'Resource' object | |
lstResource | - pointer to an INFO list chunk |
Definition at line 377 of file DLS.cpp.
References DLS::dlsid_t::abData, CHUNK_ID_DLID, RIFF::List::GetSubChunk(), pDLSID, pInfo, pParent, pResourceList, RIFF::Chunk::Read(), DLS::dlsid_t::ulData1, DLS::dlsid_t::usData2, and DLS::dlsid_t::usData3.
DLS::Resource::~Resource | ( | ) | [protected, virtual] |
Resource* DLS::Resource::GetParent | ( | ) | [inline] |
Definition at line 337 of file DLS.h.
References pParent.
Referenced by gig::Region::AddDimension(), DLS::Region::GetSample(), gig::Region::GetSampleFromWavePool(), gig::Region::Region(), gig::Region::UpdateChunks(), and DLS::Region::UpdateChunks().
void DLS::Resource::UpdateChunks | ( | ) | [virtual] |
Update chunks with current Resource data.
Apply Resource data persistently below the previously given resource list chunk. This will currently only include the INFO data. The DLSID will not be applied at the moment (yet).
You have to call File::Save() to make changes persistent.
Reimplemented in DLS::Sample, DLS::Region, DLS::Instrument, DLS::File, gig::Sample, gig::Region, gig::Instrument, and gig::File.
Definition at line 407 of file DLS.cpp.
References pInfo, and DLS::Info::UpdateChunks().
Referenced by DLS::File::UpdateChunks(), DLS::Instrument::UpdateChunks(), and DLS::Sample::UpdateChunks().
Points (in any case) to an Info object, providing additional, optional infos and comments.
Definition at line 334 of file DLS.h.
Referenced by gig::File::File(), gig::Instrument::Instrument(), gig::Region::Region(), Resource(), gig::Sample::Sample(), UpdateChunks(), and ~Resource().
Points to a dlsid_t structure if the file provided a DLS ID else is NULL.
Definition at line 335 of file DLS.h.
Referenced by Resource(), and ~Resource().
Resource* DLS::Resource::pParent [protected] |
Definition at line 340 of file DLS.h.
Referenced by GetParent(), Resource(), gig::Sample::UpdateChunks(), DLS::Instrument::~Instrument(), DLS::Region::~Region(), and DLS::Sample::~Sample().
RIFF::List* DLS::Resource::pResourceList [protected] |