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

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

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

revision 3292 by schoenebeck, Thu Jan 5 16:04:00 2017 UTC revision 3293 by schoenebeck, Tue Jun 27 22:19:19 2017 UTC
# Line 40  namespace LinuxSampler { Line 40  namespace LinuxSampler {
40          return pEngineChannel->GetScriptCallbackID(m_vm->m_event);          return pEngineChannel->GetScriptCallbackID(m_vm->m_event);
41      }      }
42    
43        // built-in array variable %NKSP_CALLBACK_CHILD_ID[]
44    
45        InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent)
46            : m_vm(parent)
47        {
48        }
49    
50        VMIntArrayExpr* InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::asIntArray() const {
51            return const_cast<VMIntArrayExpr*>( dynamic_cast<const VMIntArrayExpr*>(this) );
52        }
53    
54        int InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::arraySize() const {
55            return m_vm->m_event->countChildHandlers();
56        }
57    
58        int InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::evalIntElement(uint i) {
59            if (i >= arraySize()) return 0;
60            return m_vm->m_event->childHandlerID[i];
61        }
62    
63      // built-in variable %ALL_EVENTS      // built-in variable %ALL_EVENTS
64    
65      InstrumentScriptVMDynVar_ALL_EVENTS::InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent)      InstrumentScriptVMDynVar_ALL_EVENTS::InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent)

Legend:
Removed from v.3292  
changed lines
  Added in v.3293

  ViewVC Help
Powered by ViewVC