2744 |
|
|
2745 |
/** @brief Update chunks with current group settings. |
/** @brief Update chunks with current group settings. |
2746 |
* |
* |
2747 |
* Apply current Group field values to the respective. You have to call |
* Apply current Group field values to the respective chunks. You have |
2748 |
* File::Save() to make changes persistent. |
* to call File::Save() to make changes persistent. |
2749 |
|
* |
2750 |
|
* Usually there is absolutely no need to call this method explicitly. |
2751 |
|
* It will be called automatically when File::Save() was called. |
2752 |
*/ |
*/ |
2753 |
void Group::UpdateChunks() { |
void Group::UpdateChunks() { |
2754 |
// make sure <3gri> and <3gnl> list chunks exist |
// make sure <3gri> and <3gnl> list chunks exist |
3179 |
} |
} |
3180 |
} |
} |
3181 |
|
|
3182 |
|
/** |
3183 |
|
* Apply all the gig file's current instruments, samples, groups and settings |
3184 |
|
* to the respective RIFF chunks. You have to call Save() to make changes |
3185 |
|
* persistent. |
3186 |
|
* |
3187 |
|
* Usually there is absolutely no need to call this method explicitly. |
3188 |
|
* It will be called automatically when File::Save() was called. |
3189 |
|
* |
3190 |
|
* @throws Exception - on errors |
3191 |
|
*/ |
3192 |
|
void File::UpdateChunks() { |
3193 |
|
// first update base class's chunks |
3194 |
|
DLS::File::UpdateChunks(); |
3195 |
|
|
3196 |
|
// update group's chunks |
3197 |
|
if (pGroups) { |
3198 |
|
std::list<Group*>::iterator iter = pGroups->begin(); |
3199 |
|
std::list<Group*>::iterator end = pGroups->end(); |
3200 |
|
for (; iter != end; ++iter) { |
3201 |
|
(*iter)->UpdateChunks(); |
3202 |
|
} |
3203 |
|
} |
3204 |
|
} |
3205 |
|
|
3206 |
|
|
3207 |
|
|
3208 |
// *************** Exception *************** |
// *************** Exception *************** |