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

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

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

revision 3283 by schoenebeck, Wed Jun 21 20:59:06 2017 UTC revision 3335 by schoenebeck, Sun Jul 30 14:33:15 2017 UTC
# Line 178  namespace LinuxSampler { Line 178  namespace LinuxSampler {
178                  synth_param_pitch_time,                  synth_param_pitch_time,
179                  synth_param_pitch_curve,                  synth_param_pitch_curve,
180                  synth_param_pan,                  synth_param_pan,
181                    synth_param_pan_time,
182                    synth_param_pan_curve,
183                  synth_param_cutoff,                  synth_param_cutoff,
184                  synth_param_resonance,                  synth_param_resonance,
185                  synth_param_attack,                  synth_param_attack,
186                  synth_param_decay,                  synth_param_decay,
187                    synth_param_sustain,
188                  synth_param_release,                  synth_param_release,
189                  synth_param_amp_lfo_depth,                  synth_param_amp_lfo_depth,
190                  synth_param_amp_lfo_freq,                  synth_param_amp_lfo_freq,
# Line 309  namespace LinuxSampler { Line 312  namespace LinuxSampler {
312      class VMEventHandler;      class VMEventHandler;
313      class VMExecContext;      class VMExecContext;
314    
315        /**
316         * Maximum amount of child script handler instances one script handler is
317         * allowed to create by calling built-in script function fork().
318         */
319        #define MAX_FORK_PER_SCRIPT_HANDLER 8
320    
321      /** @brief Real-time instrument script event.      /** @brief Real-time instrument script event.
322       *       *
323       * Encapsulates one execution instance of a real-time instrument script for       * Encapsulates one execution instance of a real-time instrument script for
# Line 332  namespace LinuxSampler { Line 341  namespace LinuxSampler {
341          int executionSlices; ///< Amount of times this script event has been executed by the ScriptVM runner class.          int executionSlices; ///< Amount of times this script event has been executed by the ScriptVM runner class.
342          bool ignoreAllWaitCalls; ///< If true: calling any built-in wait*() script function should be ignored (this variable may be set with the 2nd argument of built-in script function stop_wait()).          bool ignoreAllWaitCalls; ///< If true: calling any built-in wait*() script function should be ignored (this variable may be set with the 2nd argument of built-in script function stop_wait()).
343          VMEventHandlerType_t handlerType; ///< Native representation of built-in script variable $NI_CALLBACK_TYPE, reflecting the script event type of this script event.          VMEventHandlerType_t handlerType; ///< Native representation of built-in script variable $NI_CALLBACK_TYPE, reflecting the script event type of this script event.
344            script_callback_id_t parentHandlerID; ///< Only in case this script handler instance was created by calling built-in script function fork(): callback ID of the parent event handler instance which created this child. For regular event handler instances which were not created by fork(), this variable reflects 0 (which is always considered an invalid handler ID).
345            script_callback_id_t childHandlerID[MAX_FORK_PER_SCRIPT_HANDLER+1]; ///< In case built-in script function fork() was called by this script handler instance: A zero terminated ID list of all child event handler instances (note: children will not vanish from this list after they terminated).
346            bool autoAbortByParent; ///< Only if this is a child event handler created by calling fork(): if this is true then this child will automatically aborted if the parent event handler terminates.
347            int forkIndex; ///< Only for fork() calls: distinguishment feature which is 0 for parent, 1 for 1st child, 2 for 2nd child, etc.
348    
349            void forkTo(ScriptEvent* e, bool bAutoAbort) const;
350            int countChildHandlers() const;
351            void addChildHandlerID(script_callback_id_t childID);
352      };      };
353    
354      /**      /**
# Line 343  namespace LinuxSampler { Line 360  namespace LinuxSampler {
360       * interpreted by this method to be "now".       * interpreted by this method to be "now".
361       *       *
362       * The meaning of @a fragmentPosBase becomes more important the larger       * The meaning of @a fragmentPosBase becomes more important the larger
363       * the audio fragment size, and vice versa it bcomes less important the       * the audio fragment size, and vice versa it becomes less important the
364       * smaller the audio fragment size.       * smaller the audio fragment size.
365       *       *
366       * @param queue - destination scheduler queue       * @param queue - destination scheduler queue

Legend:
Removed from v.3283  
changed lines
  Added in v.3335

  ViewVC Help
Powered by ViewVC