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

Diff of /linuxsampler/trunk/src/scriptvm/common.h

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

revision 3073 by schoenebeck, Thu Jan 5 16:04:00 2017 UTC revision 3221 by schoenebeck, Fri May 26 18:30:42 2017 UTC
# Line 850  namespace LinuxSampler { Line 850  namespace LinuxSampler {
850           * @see ScriptVM::exec()           * @see ScriptVM::exec()
851           */           */
852          virtual int suspensionTimeMicroseconds() const = 0;          virtual int suspensionTimeMicroseconds() const = 0;
853    
854            /**
855             * Causes all polyphonic variables to be reset to zero values. A
856             * polyphonic variable is expected to be zero when entering a new event
857             * handler instance. As an exception the values of polyphonic variables
858             * shall only be preserved from an note event handler instance to its
859             * correspending specific release handler instance. So in the latter
860             * case the script author may pass custom data from the note handler to
861             * the release handler, but only for the same specific note!
862             */
863            virtual void resetPolyphonicData() = 0;
864    
865            /**
866             * Returns amount of virtual machine instructions which have been
867             * performed the last time when this execution context was executing a
868             * script. So in case you need the overall amount of instructions
869             * instead, then you need to add them by yourself after each
870             * ScriptVM::exec() call.
871             */
872            virtual size_t instructionsPerformed() const = 0;
873      };      };
874    
875      /** @brief Script callback for a certain event.      /** @brief Script callback for a certain event.

Legend:
Removed from v.3073  
changed lines
  Added in v.3221

  ViewVC Help
Powered by ViewVC