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

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

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

revision 3056 by schoenebeck, Fri Dec 16 12:57:59 2016 UTC revision 3207 by schoenebeck, Thu May 25 10:53:45 2017 UTC
# Line 1  Line 1 
1  /*                                                              -*- c++ -*-  /*                                                              -*- c++ -*-
2   *   *
3   * Copyright (c) 2014 - 2016 Christian Schoenebeck and Andreas Persson   * Copyright (c) 2014 - 2017 Christian Schoenebeck and Andreas Persson
4   *   *
5   * http://www.linuxsampler.org   * http://www.linuxsampler.org
6   *   *
# Line 340  public: Line 340  public:
340      bool isAssignable() const OVERRIDE { return dynVar->isAssignable(); }      bool isAssignable() const OVERRIDE { return dynVar->isAssignable(); }
341      bool isPolyphonic() const OVERRIDE { return false; }      bool isPolyphonic() const OVERRIDE { return false; }
342      void assign(Expression* expr) OVERRIDE { dynVar->assignExpr(expr); }      void assign(Expression* expr) OVERRIDE { dynVar->assignExpr(expr); }
343        VMIntArrayExpr* asIntArray() const OVERRIDE { return dynVar->asIntArray(); }
344      int evalInt() OVERRIDE;      int evalInt() OVERRIDE;
345      String evalStr() OVERRIDE;      String evalStr() OVERRIDE;
346      String evalCastToStr() OVERRIDE;      String evalCastToStr() OVERRIDE;
# Line 354  class FunctionCall : virtual public Leaf Line 355  class FunctionCall : virtual public Leaf
355  public:  public:
356      FunctionCall(const char* function, ArgsRef args, VMFunction* fn) :      FunctionCall(const char* function, ArgsRef args, VMFunction* fn) :
357          functionName(function), args(args), fn(fn) { }          functionName(function), args(args), fn(fn) { }
358      void dump(int level = 0);      void dump(int level = 0) OVERRIDE;
359      StmtFlags_t exec();      StmtFlags_t exec() OVERRIDE;
360      int evalInt();      int evalInt() OVERRIDE;
361      VMIntArrayExpr* asIntArray() const OVERRIDE;      VMIntArrayExpr* asIntArray() const OVERRIDE;
362      String evalStr();      String evalStr() OVERRIDE;
363      bool isConstExpr() const { return false; }      bool isConstExpr() const OVERRIDE { return false; }
364      ExprType_t exprType() const;      ExprType_t exprType() const OVERRIDE;
365      String evalCastToStr();      String evalCastToStr() OVERRIDE;
366      bool isPolyphonic() const { return args->isPolyphonic(); }      bool isPolyphonic() const OVERRIDE { return args->isPolyphonic(); }
367  protected:  protected:
368      VMFnResult* execVMFn();      VMFnResult* execVMFn();
369  };  };
# Line 708  public: Line 709  public:
709      int suspensionTimeMicroseconds() const OVERRIDE {      int suspensionTimeMicroseconds() const OVERRIDE {
710          return suspendMicroseconds;          return suspendMicroseconds;
711      }      }
712    
713        void resetPolyphonicData() OVERRIDE {
714            if (polyphonicIntMemory.empty()) return;
715            memset(&polyphonicIntMemory[0], 0, polyphonicIntMemory.size() * sizeof(int));
716        }
717  };  };
718    
719  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.3056  
changed lines
  Added in v.3207

  ViewVC Help
Powered by ViewVC