/[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 2559 by schoenebeck, Sun May 18 17:38:25 2014 UTC revision 2594 by schoenebeck, Thu Jun 5 00:16:25 2014 UTC
# Line 64  namespace LinuxSampler { Line 64  namespace LinuxSampler {
64       * controller like LFO or EG. An event should only be created by an       * controller like LFO or EG. An event should only be created by an
65       * EventGenerator!       * EventGenerator!
66       *       *
67       * @see EventGenerator       * @see EventGenerator, ScriptEvent
68       */       */
69      class Event {      class Event {
70          public:          public:
# Line 140  namespace LinuxSampler { Line 140  namespace LinuxSampler {
140              int32_t         iFragmentPos;    ///< Position in the current fragment this event refers to.              int32_t         iFragmentPos;    ///< Position in the current fragment this event refers to.
141      };      };
142    
143        class VMEventHandler;
144        class VMExecContext;
145    
146        /** @brief Real-time instrument script event.
147         *
148         * Encapsulates one execution instance of a real-time instrument script for
149         * exactly one script event handler (script event callback).
150         */
151        class ScriptEvent {
152        public:
153            Event cause; ///< Original external event that triggered this script event (i.e. MIDI note on event, MIDI CC event, etc.).
154            VMEventHandler** handlers; ///< The script's event handlers (callbacks) to be processed (NULL terminated list).
155            VMExecContext* execCtx; ///< Script's current execution state (polyphonic variables and execution stack).
156            int currentHandler; ///< Current index in 'handlers' list above.
157            int executionSlices; ///< Amount of times this script event has been executed by the ScriptVM runner class.
158        };
159    
160  } // namespace LinuxSampler  } // namespace LinuxSampler
161    
162  #endif // __LS_EVENT_H__  #endif // __LS_EVENT_H__

Legend:
Removed from v.2559  
changed lines
  Added in v.2594

  ViewVC Help
Powered by ViewVC