488 |
/** |
/** |
489 |
* Adds a new sample loop with the provided loop definition. |
* Adds a new sample loop with the provided loop definition. |
490 |
* |
* |
491 |
* @param - points to a loop definition that is to be copied |
* @param pLoopDef - points to a loop definition that is to be copied |
492 |
*/ |
*/ |
493 |
void Sampler::AddSampleLoop(sample_loop_t* pLoopDef) { |
void Sampler::AddSampleLoop(sample_loop_t* pLoopDef) { |
494 |
sample_loop_t* pNewLoops = new sample_loop_t[SampleLoops + 1]; |
sample_loop_t* pNewLoops = new sample_loop_t[SampleLoops + 1]; |
1073 |
* to add samples, instruments and finally call Save() to actually write |
* to add samples, instruments and finally call Save() to actually write |
1074 |
* a DLS file. |
* a DLS file. |
1075 |
*/ |
*/ |
1076 |
File::File() : Resource(NULL, pRIFF = new RIFF::File(RIFF_TYPE_DLS, RIFF::endian_little)) { |
File::File() : Resource(NULL, pRIFF = new RIFF::File(RIFF_TYPE_DLS)) { |
1077 |
|
pRIFF->SetByteOrder(RIFF::endian_little); |
1078 |
pVersion = new version_t; |
pVersion = new version_t; |
1079 |
pVersion->major = 0; |
pVersion->major = 0; |
1080 |
pVersion->minor = 0; |
pVersion->minor = 0; |