Jamba C++ API
5.1.1
|
Base class for a raw vst parameter definition. More...
#include <ParamDef.h>
Inherits IParamDef.
Inherited by VstParamDef< T >.
Public Member Functions | |
RawVstParamDef (ParamID const iParamID, VstString16 iTitle, VstString16 iUnits, ParamValue const iDefaultNormalizedValue, int32 const iStepCount, int32 const iFlags, UnitID const iUnitID, VstString16 iShortTitle, int32 const iPrecision, Owner const iOwner, bool const iTransient, int16 const iDeprecatedSince) | |
ParamValue | readFromState (NormalizedState const &iState) const |
Read the value from the (normalized) state. More... | |
ParamValue | readFromStream (IBStreamer &iStreamer) const |
virtual void | toString (ParamValue iNormalizedValue, String128 iString) const |
virtual std::string | toUTF8String (ParamValue iNormalizedValue, int32 iPrecision) const |
Return the value as a utf-8 string. More... | |
tresult | writeToState (ParamValue iValue, NormalizedState &oState) const |
Writes the provided value to the (normalized) state. More... | |
![]() | |
IParamDef (ParamID const iParamID, VstString16 iTitle, Owner const iOwner, bool const iTransient, int16 const iDeprecatedSince) | |
bool | isDeprecated () const |
Returns true if the parameter is deprecated (meaning it can only be used to upgrade to latest version) More... | |
virtual | ~IParamDef ()=default |
Public Attributes | |
const ParamValue | fDefaultValue |
const int32 | fFlags |
const int32 | fPrecision |
const VstString16 | fShortTitle |
const int32 | fStepCount |
const UnitID | fUnitID |
const VstString16 | fUnits |
![]() | |
const int16 | fDeprecatedSince |
const Owner | fOwner |
const ParamID | fParamID |
const VstString16 | fTitle |
const bool | fTransient |
Additional Inherited Members | |
![]() | |
enum | Owner { kRT, kGUI } |
Who owns the parameter (mostly for state saving purposes) More... | |
![]() | |
static constexpr int16 | kVersionNotDeprecated = -1 |
Special version indicating the parameter is not deprecated. More... | |
Base class for a raw vst parameter definition.
|
inline |
|
inline |
Read the value from the (normalized) state.
|
inline |
|
inlinevirtual |
Reimplemented in VstParamDef< T >.
|
inlinevirtual |
Return the value as a utf-8 string.
iNormalizedValue | the (normalized) value to process |
iPrecision | if < 0 uses fPrecision otherwise use the one provided |
Reimplemented in VstParamDef< T >.
|
inline |
Writes the provided value to the (normalized) state.
const ParamValue fDefaultValue |
const int32 fFlags |
const int32 fPrecision |
const VstString16 fShortTitle |
const int32 fStepCount |
const UnitID fUnitID |
const VstString16 fUnits |