|
|
|
@ -63,7 +63,7 @@ public:
@@ -63,7 +63,7 @@ public:
|
|
|
|
|
virtual ~BlockParamBase() = default; |
|
|
|
|
|
|
|
|
|
virtual bool update() = 0; |
|
|
|
|
const char *getName() { return param_name(_handle); } |
|
|
|
|
const char *getName() const { return param_name(_handle); } |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
param_t _handle{PARAM_INVALID}; |
|
|
|
@ -101,8 +101,12 @@ protected:
@@ -101,8 +101,12 @@ protected:
|
|
|
|
|
T _val; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
template <> |
|
|
|
|
bool BlockParam<bool>::update(); |
|
|
|
|
|
|
|
|
|
typedef BlockParam<float> BlockParamFloat; |
|
|
|
|
typedef BlockParam<int32_t> BlockParamInt; |
|
|
|
|
typedef BlockParam<bool> BlockParamBool; |
|
|
|
|
typedef BlockParam<float &> BlockParamExtFloat; |
|
|
|
|
typedef BlockParam<int32_t &> BlockParamExtInt; |
|
|
|
|
|
|
|
|
|