--- linuxsampler/trunk/src/engines/common/InstrumentScriptVM.h 2017/06/27 22:19:19 3293 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVM.h 2017/06/28 09:45:56 3296 @@ -75,6 +75,12 @@ EVENT_PAR_3, }; +enum { + CALLBACK_STATUS_TERMINATED = 0, + CALLBACK_STATUS_QUEUE = 1, + CALLBACK_STATUS_RUNNING = (1 << 1) +}; + namespace LinuxSampler { class AbstractEngineChannel; @@ -308,6 +314,7 @@ InstrumentScriptVMFunction_get_event_par m_fnGetEventPar; InstrumentScriptVMFunction_set_event_par m_fnSetEventPar; InstrumentScriptVMFunction_change_play_pos m_fnChangePlayPos; + InstrumentScriptVMFunction_callback_status m_fnCallbackStatus; InstrumentScriptVMDynVar_ENGINE_UPTIME m_varEngineUptime; InstrumentScriptVMDynVar_NI_CALLBACK_ID m_varCallbackID; InstrumentScriptVMDynVar_ALL_EVENTS m_varAllEvents; @@ -349,6 +356,7 @@ friend class InstrumentScriptVMFunction_stop_wait; friend class InstrumentScriptVMFunction_abort; friend class InstrumentScriptVMFunction_fork; + friend class InstrumentScriptVMFunction_callback_status; friend class InstrumentScriptVMDynVar_ENGINE_UPTIME; friend class InstrumentScriptVMDynVar_NI_CALLBACK_ID; friend class InstrumentScriptVMDynVar_ALL_EVENTS;