224 |
|
|
225 |
/** Defines Sample Loop Points. */ |
/** Defines Sample Loop Points. */ |
226 |
struct sample_loop_t { |
struct sample_loop_t { |
227 |
uint32_t Size; |
uint32_t Size; ///< For internal usage only: usually reflects exactly @c sizeof(sample_loop_t), otherwise if the value is larger then the DLS format was extended! |
228 |
uint32_t LoopType; |
uint32_t LoopType; ///< Defines how the waveform samples will be looped (appropriate loop types for the gig format are defined by gig::loop_type_t). |
229 |
uint32_t LoopStart; |
uint32_t LoopStart; ///< The start value specifies the offset (in sample points) in the waveform data of the first sample point to be played in the loop. |
230 |
uint32_t LoopLength; |
uint32_t LoopLength; ///< Length of the looping area (in sample points). |
231 |
}; |
}; |
232 |
|
|
233 |
// just symbol prototyping |
// just symbol prototyping |
355 |
uint32_t SampleLoops; ///< Reflects the number of sample loops. |
uint32_t SampleLoops; ///< Reflects the number of sample loops. |
356 |
sample_loop_t* pSampleLoops; ///< Points to the beginning of a sample loop array, or is NULL if there are no loops defined. |
sample_loop_t* pSampleLoops; ///< Points to the beginning of a sample loop array, or is NULL if there are no loops defined. |
357 |
|
|
358 |
|
void AddSampleLoop(sample_loop_t* pLoopDef); |
359 |
|
void DeleteSampleLoop(sample_loop_t* pLoopDef); |
360 |
virtual void UpdateChunks(); |
virtual void UpdateChunks(); |
361 |
protected: |
protected: |
362 |
RIFF::List* pParentList; |
RIFF::List* pParentList; |