libgig
3.3.0.svn20
|
Abstract base class which provides mandatory informations about sample players in general. More...
#include <DLS.h>
Public Member Functions | |
void | AddSampleLoop (sample_loop_t *pLoopDef) |
Adds a new sample loop with the provided loop definition. More... | |
void | DeleteSampleLoop (sample_loop_t *pLoopDef) |
Deletes an existing sample loop. More... | |
virtual void | SetGain (int32_t gain) |
virtual void | UpdateChunks () |
Apply all sample player options to the respective RIFF chunk. More... | |
virtual void | CopyAssign (const Sampler *orig) |
Make a deep copy of the Sampler object given by orig and assign it to this object. More... | |
Public Attributes | |
uint8_t | UnityNote |
int16_t | FineTune |
int32_t | Gain |
bool | NoSampleDepthTruncation |
bool | NoSampleCompression |
uint32_t | SampleLoops |
Reflects the number of sample loops. More... | |
sample_loop_t * | pSampleLoops |
Points to the beginning of a sample loop array, or is NULL if there are no loops defined. More... | |
Protected Member Functions | |
Sampler (RIFF::List *ParentList) | |
virtual | ~Sampler () |
Protected Attributes | |
RIFF::List * | pParentList |
uint32_t | uiHeaderSize |
uint32_t | SamplerOptions |
Abstract base class which provides mandatory informations about sample players in general.
|
protected |
Definition at line 542 of file DLS.cpp.
References CHUNK_ID_WSMP, F_WSMP_NO_COMPRESSION, F_WSMP_NO_TRUNCATION, FineTune, Gain, RIFF::List::GetSubChunk(), NoSampleCompression, NoSampleDepthTruncation, pParentList, pSampleLoops, RIFF::Chunk::Read(), RIFF::Chunk::ReadInt16(), RIFF::Chunk::ReadInt32(), RIFF::Chunk::ReadUint16(), RIFF::Chunk::ReadUint32(), SampleLoops, SamplerOptions, RIFF::Chunk::SetPos(), RIFF::stream_curpos, uiHeaderSize, and UnityNote.
|
protectedvirtual |
Definition at line 574 of file DLS.cpp.
References pSampleLoops.
void DLS::Sampler::AddSampleLoop | ( | sample_loop_t * | pLoopDef | ) |
Adds a new sample loop with the provided loop definition.
pLoopDef | - points to a loop definition that is to be copied |
Definition at line 623 of file DLS.cpp.
References pSampleLoops, SampleLoops, and DLS::sample_loop_t::Size.
|
virtual |
Make a deep copy of the Sampler object given by orig and assign it to this object.
orig | - original Sampler object to be copied from |
Definition at line 669 of file DLS.cpp.
References FineTune, Gain, NoSampleCompression, NoSampleDepthTruncation, pSampleLoops, SampleLoops, SamplerOptions, and UnityNote.
Referenced by DLS::Region::CopyAssign().
void DLS::Sampler::DeleteSampleLoop | ( | sample_loop_t * | pLoopDef | ) |
Deletes an existing sample loop.
pLoopDef | - pointer to existing loop definition |
Exception | - if given loop definition does not exist |
Definition at line 645 of file DLS.cpp.
References pSampleLoops, and SampleLoops.
|
virtual |
Reimplemented in gig::DimensionRegion.
Definition at line 578 of file DLS.cpp.
References Gain.
Referenced by gig::DimensionRegion::SetGain().
|
virtual |
Apply all sample player options to the respective RIFF chunk.
You have to call File::Save() to make changes persistent.
Reimplemented in gig::Region, gig::DimensionRegion, and DLS::Region.
Definition at line 586 of file DLS.cpp.
References RIFF::List::AddSubChunk(), CHUNK_ID_WSMP, F_WSMP_NO_COMPRESSION, F_WSMP_NO_TRUNCATION, FineTune, Gain, RIFF::Chunk::GetSize(), RIFF::List::GetSubChunk(), RIFF::Chunk::LoadChunkData(), NoSampleCompression, NoSampleDepthTruncation, pParentList, pSampleLoops, RIFF::Chunk::Resize(), SampleLoops, SamplerOptions, uiHeaderSize, and UnityNote.
Referenced by DLS::Region::UpdateChunks(), and gig::DimensionRegion::UpdateChunks().
int16_t DLS::Sampler::FineTune |
Definition at line 366 of file DLS.h.
Referenced by CopyAssign(), Sampler(), and UpdateChunks().
int32_t DLS::Sampler::Gain |
Definition at line 367 of file DLS.h.
Referenced by CopyAssign(), gig::DimensionRegion::DimensionRegion(), Sampler(), SetGain(), gig::DimensionRegion::SetGain(), and UpdateChunks().
bool DLS::Sampler::NoSampleCompression |
Definition at line 369 of file DLS.h.
Referenced by CopyAssign(), Sampler(), and UpdateChunks().
bool DLS::Sampler::NoSampleDepthTruncation |
Definition at line 368 of file DLS.h.
Referenced by CopyAssign(), Sampler(), and UpdateChunks().
|
protected |
Definition at line 379 of file DLS.h.
Referenced by gig::Region::AddDimension(), gig::DimensionRegion::CopyAssign(), gig::DimensionRegion::DimensionRegion(), Sampler(), UpdateChunks(), and gig::DimensionRegion::UpdateChunks().
sample_loop_t* DLS::Sampler::pSampleLoops |
Points to the beginning of a sample loop array, or is NULL if there are no loops defined.
Definition at line 371 of file DLS.h.
Referenced by AddSampleLoop(), CopyAssign(), gig::DimensionRegion::CopyAssign(), DeleteSampleLoop(), gig::DimensionRegion::DimensionRegion(), gig::Sample::ReadAndLoop(), Sampler(), UpdateChunks(), and ~Sampler().
uint32_t DLS::Sampler::SampleLoops |
Reflects the number of sample loops.
Definition at line 370 of file DLS.h.
Referenced by AddSampleLoop(), CopyAssign(), gig::DimensionRegion::CopyAssign(), DeleteSampleLoop(), gig::DimensionRegion::DimensionRegion(), gig::Sample::ReadAndLoop(), Sampler(), UpdateChunks(), and gig::File::UpdateChunks().
|
protected |
Definition at line 381 of file DLS.h.
Referenced by CopyAssign(), gig::DimensionRegion::DimensionRegion(), Sampler(), and UpdateChunks().
|
protected |
Definition at line 380 of file DLS.h.
Referenced by Sampler(), and UpdateChunks().
uint8_t DLS::Sampler::UnityNote |
Definition at line 365 of file DLS.h.
Referenced by CopyAssign(), Sampler(), and UpdateChunks().