2152 |
if (file->pWavePoolTable) pDimensionRegions[i]->pSample = GetSampleFromWavePool(wavepoolindex); |
if (file->pWavePoolTable) pDimensionRegions[i]->pSample = GetSampleFromWavePool(wavepoolindex); |
2153 |
} |
} |
2154 |
GetSample(); // load global region sample reference |
GetSample(); // load global region sample reference |
2155 |
|
} else { |
2156 |
|
DimensionRegions = 0; |
2157 |
} |
} |
2158 |
|
|
2159 |
// make sure there is at least one dimension region |
// make sure there is at least one dimension region |
2176 |
* @throws gig::Exception if samples cannot be dereferenced |
* @throws gig::Exception if samples cannot be dereferenced |
2177 |
*/ |
*/ |
2178 |
void Region::UpdateChunks() { |
void Region::UpdateChunks() { |
2179 |
|
// in the gig format we don't care about the Region's sample reference |
2180 |
|
// but we still have to provide some existing one to not corrupt the |
2181 |
|
// file, so to avoid the latter we simply always assign the sample of |
2182 |
|
// the first dimension region of this region |
2183 |
|
pSample = pDimensionRegions[0]->pSample; |
2184 |
|
|
2185 |
// first update base class's chunks |
// first update base class's chunks |
2186 |
DLS::Region::UpdateChunks(); |
DLS::Region::UpdateChunks(); |
2187 |
|
|
2748 |
} |
} |
2749 |
|
|
2750 |
Group::~Group() { |
Group::~Group() { |
2751 |
|
// remove the chunk associated with this group (if any) |
2752 |
|
if (pNameChunk) pNameChunk->GetParent()->DeleteSubChunk(pNameChunk); |
2753 |
} |
} |
2754 |
|
|
2755 |
/** @brief Update chunks with current group settings. |
/** @brief Update chunks with current group settings. |