#include <DLS.h>
Inheritance diagram for DLS::Sampler:
Public Member Functions | |
void | AddSampleLoop (sample_loop_t *pLoopDef) |
Adds a new sample loop with the provided loop definition. | |
void | DeleteSampleLoop (sample_loop_t *pLoopDef) |
Deletes an existing sample loop. | |
virtual void | SetGain (int32_t gain) |
virtual void | UpdateChunks () |
Apply all sample player options to the respective RIFF chunk. | |
Public Attributes | |
uint8_t | UnityNote |
int16_t | FineTune |
int32_t | Gain |
bool | NoSampleDepthTruncation |
bool | NoSampleCompression |
uint32_t | SampleLoops |
Reflects the number of sample loops. | |
sample_loop_t * | pSampleLoops |
Points to the beginning of a sample loop array, or is NULL if there are no loops defined. | |
Protected Member Functions | |
Sampler (RIFF::List *ParentList) | |
virtual | ~Sampler () |
Protected Attributes | |
RIFF::List * | pParentList |
uint32_t | uiHeaderSize |
uint32_t | SamplerOptions |
Definition at line 356 of file DLS.h.
|
|
Definition at line 526 of file DLS.cpp. References pSampleLoops. |
|
Adds a new sample loop with the provided loop definition.
Definition at line 575 of file DLS.cpp. References pSampleLoops, and SampleLoops. |
|
Deletes an existing sample loop.
Definition at line 597 of file DLS.cpp. References pSampleLoops, and SampleLoops. |
|
Reimplemented in gig::DimensionRegion. Definition at line 530 of file DLS.cpp. References Gain. Referenced by gig::DimensionRegion::SetGain(). |
|
Apply all sample player options to the respective RIFF chunk. You have to call File::Save() to make changes persistent. Reimplemented in DLS::Region, gig::DimensionRegion, and gig::Region. Definition at line 538 of file DLS.cpp. References RIFF::List::AddSubChunk(), CHUNK_ID_WSMP, RIFF::Chunk::GetSize(), RIFF::List::GetSubChunk(), pParentList, RIFF::Chunk::Resize(), SampleLoops, and uiHeaderSize. Referenced by gig::DimensionRegion::UpdateChunks(), and DLS::Region::UpdateChunks(). |
|
Definition at line 359 of file DLS.h. Referenced by Sampler(). |
|
Definition at line 360 of file DLS.h. Referenced by Sampler(), gig::DimensionRegion::SetGain(), and SetGain(). |
|
Definition at line 362 of file DLS.h. Referenced by Sampler(). |
|
Definition at line 361 of file DLS.h. Referenced by Sampler(). |
|
Definition at line 371 of file DLS.h. Referenced by gig::DimensionRegion::DimensionRegion(), Sampler(), gig::DimensionRegion::UpdateChunks(), and UpdateChunks(). |
|
Points to the beginning of a sample loop array, or is NULL if there are no loops defined.
Definition at line 364 of file DLS.h. Referenced by AddSampleLoop(), DeleteSampleLoop(), gig::DimensionRegion::DimensionRegion(), gig::Sample::ReadAndLoop(), Sampler(), and ~Sampler(). |
|
Reflects the number of sample loops.
Definition at line 363 of file DLS.h. Referenced by AddSampleLoop(), DeleteSampleLoop(), gig::DimensionRegion::DimensionRegion(), gig::Sample::ReadAndLoop(), Sampler(), and UpdateChunks(). |
|
Definition at line 373 of file DLS.h. Referenced by gig::DimensionRegion::DimensionRegion(), and Sampler(). |
|
Definition at line 372 of file DLS.h. Referenced by Sampler(), and UpdateChunks(). |
|
Definition at line 358 of file DLS.h. Referenced by Sampler(). |