5656 |
* GigaStudio 4 software. It will currently only work with LinuxSampler and |
* GigaStudio 4 software. It will currently only work with LinuxSampler and |
5657 |
* gigedit. |
* gigedit. |
5658 |
*/ |
*/ |
5659 |
uint Instrument::ScriptSlotCount() const { |
size_t Instrument::ScriptSlotCount() const { |
5660 |
return uint(pScriptRefs ? pScriptRefs->size() : scriptPoolFileOffsets.size()); |
return pScriptRefs ? pScriptRefs->size() : scriptPoolFileOffsets.size(); |
5661 |
} |
} |
5662 |
|
|
5663 |
/** @brief Whether script execution shall be skipped. |
/** @brief Whether script execution shall be skipped. |
5716 |
* the @c Script identified by passed @p uuid. |
* the @c Script identified by passed @p uuid. |
5717 |
*/ |
*/ |
5718 |
bool Instrument::ReferencesScriptWithUuid(const _UUID& uuid) { |
bool Instrument::ReferencesScriptWithUuid(const _UUID& uuid) { |
5719 |
const uint nSlots = ScriptSlotCount(); |
const size_t nSlots = ScriptSlotCount(); |
5720 |
for (uint iSlot = 0; iSlot < nSlots; ++iSlot) |
for (size_t iSlot = 0; iSlot < nSlots; ++iSlot) |
5721 |
if (_UUIDFromCArray(&GetScriptOfSlot(iSlot)->Uuid[0]) == uuid) |
if (_UUIDFromCArray(&GetScriptOfSlot(iSlot)->Uuid[0]) == uuid) |
5722 |
return true; |
return true; |
5723 |
return false; |
return false; |