--- linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.h 2019/08/29 13:44:35 3580 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.h 2019/08/30 11:40:25 3581 @@ -21,7 +21,7 @@ /** * Implements the built-in $ENGINE_UPTIME script variable. */ - class InstrumentScriptVMDynVar_ENGINE_UPTIME : public VMDynIntVar { + class InstrumentScriptVMDynVar_ENGINE_UPTIME FINAL : public VMDynIntVar { public: InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {} bool isAssignable() const OVERRIDE { return false; } @@ -33,7 +33,7 @@ /** * Implements the built-in $NI_CALLBACK_ID script variable. */ - class InstrumentScriptVMDynVar_NI_CALLBACK_ID : public VMDynIntVar { + class InstrumentScriptVMDynVar_NI_CALLBACK_ID FINAL : public VMDynIntVar { public: InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {} bool isAssignable() const OVERRIDE { return false; } @@ -45,7 +45,7 @@ /** * Implements the built-in array %NKSP_CALLBACK_CHILD_ID[] script variable. */ - class InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID : public VMDynIntArrayVar { + class InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID FINAL : public VMDynIntArrayVar { public: InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent); VMIntArrayExpr* asIntArray() const OVERRIDE; @@ -53,6 +53,8 @@ bool isAssignable() const OVERRIDE { return false; } vmint evalIntElement(vmuint i) OVERRIDE; void assignIntElement(vmuint i, vmint value) OVERRIDE {} + vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; } + void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment protected: InstrumentScriptVM* m_vm; }; @@ -60,7 +62,7 @@ /** * Implements the built-in %ALL_EVENTS script array variable. */ - class InstrumentScriptVMDynVar_ALL_EVENTS : public VMDynIntArrayVar { + class InstrumentScriptVMDynVar_ALL_EVENTS FINAL : public VMDynIntArrayVar { public: InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent); virtual ~InstrumentScriptVMDynVar_ALL_EVENTS(); @@ -69,6 +71,8 @@ bool isAssignable() const OVERRIDE { return false; } vmint evalIntElement(vmuint i) OVERRIDE; void assignIntElement(vmuint i, vmint value) OVERRIDE {} + vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; } + void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment protected: void updateNoteIDs(); private: