/[svn]/linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3556 by schoenebeck, Tue Jun 27 22:19:19 2017 UTC revision 3557 by schoenebeck, Sun Aug 18 00:06:04 2019 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2016 - 2017 Christian Schoenebeck   * Copyright (c) 2016 - 2019 Christian Schoenebeck
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 25  namespace LinuxSampler { Line 25  namespace LinuxSampler {
25      public:      public:
26          InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {}          InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {}
27          bool isAssignable() const OVERRIDE { return false; }          bool isAssignable() const OVERRIDE { return false; }
28          int evalInt() OVERRIDE;          vmint evalInt() OVERRIDE;
29      protected:      protected:
30          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
31      };      };
# Line 37  namespace LinuxSampler { Line 37  namespace LinuxSampler {
37      public:      public:
38          InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {}          InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {}
39          bool isAssignable() const OVERRIDE { return false; }          bool isAssignable() const OVERRIDE { return false; }
40          int evalInt() OVERRIDE;          vmint evalInt() OVERRIDE;
41      protected:      protected:
42          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
43      };      };
# Line 49  namespace LinuxSampler { Line 49  namespace LinuxSampler {
49      public:      public:
50          InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent);          InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent);
51          VMIntArrayExpr* asIntArray() const OVERRIDE;          VMIntArrayExpr* asIntArray() const OVERRIDE;
52          int arraySize() const OVERRIDE;          vmint arraySize() const OVERRIDE;
53          bool isAssignable() const OVERRIDE { return false; }          bool isAssignable() const OVERRIDE { return false; }
54          int evalIntElement(uint i) OVERRIDE;          vmint evalIntElement(vmuint i) OVERRIDE;
55          void assignIntElement(uint i, int value) OVERRIDE {}          void assignIntElement(vmuint i, vmint value) OVERRIDE {}
56      protected:      protected:
57          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
58      };      };
# Line 65  namespace LinuxSampler { Line 65  namespace LinuxSampler {
65          InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent);          InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent);
66          virtual ~InstrumentScriptVMDynVar_ALL_EVENTS();          virtual ~InstrumentScriptVMDynVar_ALL_EVENTS();
67          VMIntArrayExpr* asIntArray() const OVERRIDE;          VMIntArrayExpr* asIntArray() const OVERRIDE;
68          int arraySize() const OVERRIDE;          vmint arraySize() const OVERRIDE;
69          bool isAssignable() const OVERRIDE { return false; }          bool isAssignable() const OVERRIDE { return false; }
70          int evalIntElement(uint i) OVERRIDE;          vmint evalIntElement(vmuint i) OVERRIDE;
71          void assignIntElement(uint i, int value) OVERRIDE {}          void assignIntElement(vmuint i, vmint value) OVERRIDE {}
72      protected:      protected:
73          void updateNoteIDs();          void updateNoteIDs();
74      private:      private:
75          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
76          note_id_t* m_ids;          note_id_t* m_ids;
77          uint m_numIDs;          vmuint m_numIDs;
78      };      };
79    
80  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.3556  
changed lines
  Added in v.3557

  ViewVC Help
Powered by ViewVC