996 |
Region::Region(Instrument* pInstrument, RIFF::List* rgnList) : Resource(pInstrument, rgnList), Articulator(rgnList), Sampler(rgnList) { |
Region::Region(Instrument* pInstrument, RIFF::List* rgnList) : Resource(pInstrument, rgnList), Articulator(rgnList), Sampler(rgnList) { |
997 |
pCkRegion = rgnList; |
pCkRegion = rgnList; |
998 |
|
|
999 |
// articulation informations |
// articulation information |
1000 |
RIFF::Chunk* rgnh = rgnList->GetSubChunk(CHUNK_ID_RGNH); |
RIFF::Chunk* rgnh = rgnList->GetSubChunk(CHUNK_ID_RGNH); |
1001 |
if (rgnh) { |
if (rgnh) { |
1002 |
rgnh->Read(&KeyRange, 2, 2); |
rgnh->Read(&KeyRange, 2, 2); |
1018 |
} |
} |
1019 |
SelfNonExclusive = FormatOptionFlags & F_RGN_OPTION_SELFNONEXCLUSIVE; |
SelfNonExclusive = FormatOptionFlags & F_RGN_OPTION_SELFNONEXCLUSIVE; |
1020 |
|
|
1021 |
// sample informations |
// sample information |
1022 |
RIFF::Chunk* wlnk = rgnList->GetSubChunk(CHUNK_ID_WLNK); |
RIFF::Chunk* wlnk = rgnList->GetSubChunk(CHUNK_ID_WLNK); |
1023 |
if (wlnk) { |
if (wlnk) { |
1024 |
WaveLinkOptionFlags = wlnk->ReadUint16(); |
WaveLinkOptionFlags = wlnk->ReadUint16(); |
1827 |
* have at the end of the saving process. |
* have at the end of the saving process. |
1828 |
* |
* |
1829 |
* @param pProgress - optional: callback function for progress notification |
* @param pProgress - optional: callback function for progress notification |
1830 |
* @throws RIFF::Exception if any kind of IO error occured |
* @throws RIFF::Exception if any kind of IO error occurred |
1831 |
* @throws DLS::Exception if any kind of DLS specific error occured |
* @throws DLS::Exception if any kind of DLS specific error occurred |
1832 |
*/ |
*/ |
1833 |
void File::Save(progress_t* pProgress) { |
void File::Save(progress_t* pProgress) { |
1834 |
{ |
{ |