1 |
schoenebeck |
2942 |
/* |
2 |
schoenebeck |
3557 |
* Copyright (c) 2016 - 2019 Christian Schoenebeck |
3 |
schoenebeck |
2942 |
* |
4 |
|
|
* http://www.linuxsampler.org |
5 |
|
|
* |
6 |
|
|
* This file is part of LinuxSampler and released under the same terms. |
7 |
|
|
* See README file for details. |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
#ifndef LS_COREVMDYNVARS_H |
11 |
|
|
#define LS_COREVMDYNVARS_H |
12 |
|
|
|
13 |
|
|
#include "../common/global.h" |
14 |
|
|
#include "common.h" |
15 |
|
|
|
16 |
|
|
namespace LinuxSampler { |
17 |
|
|
|
18 |
|
|
class ScriptVM; |
19 |
|
|
|
20 |
|
|
/////////////////////////////////////////////////////////////////////////// |
21 |
|
|
// implementations of core built-in dynamic variables ... |
22 |
|
|
|
23 |
|
|
/** |
24 |
|
|
* Implements the built-in $NKSP_REAL_TIMER script variable. |
25 |
|
|
*/ |
26 |
|
|
class CoreVMDynVar_NKSP_REAL_TIMER : public VMDynIntVar { |
27 |
|
|
public: |
28 |
|
|
bool isAssignable() const OVERRIDE { return false; } |
29 |
schoenebeck |
3557 |
vmint evalInt() OVERRIDE; |
30 |
schoenebeck |
2942 |
}; |
31 |
|
|
|
32 |
|
|
/** |
33 |
|
|
* Implements the built-in $NKSP_PERF_TIMER script variable. |
34 |
|
|
*/ |
35 |
|
|
class CoreVMDynVar_NKSP_PERF_TIMER : public VMDynIntVar { |
36 |
|
|
public: |
37 |
|
|
bool isAssignable() const OVERRIDE { return false; } |
38 |
schoenebeck |
3557 |
vmint evalInt() OVERRIDE; |
39 |
schoenebeck |
2942 |
}; |
40 |
|
|
|
41 |
|
|
} // namespace LinuxSampler |
42 |
|
|
|
43 |
|
|
#endif // LS_COREVMDYNVARS_H |