1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioProcessorParameter: Add getVersionHint function

This commit is contained in:
reuk 2022-01-24 15:07:34 +00:00
parent 5186ac71e2
commit 7068e70758
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
17 changed files with 118 additions and 39 deletions

View file

@ -51,6 +51,7 @@ public:
@param valueFromString An optional lambda function that parses a string and
converts it into a non-normalised value. Some hosts use
this to allow users to type in parameter values.
@param versionHint See AudioProcessorParameter::getVersionHint()
*/
AudioParameterFloat (const String& parameterID,
const String& parameterName,
@ -59,7 +60,8 @@ public:
const String& parameterLabel = String(),
Category parameterCategory = AudioProcessorParameter::genericParameter,
std::function<String (float value, int maximumStringLength)> stringFromValue = nullptr,
std::function<float (const String& text)> valueFromString = nullptr);
std::function<float (const String& text)> valueFromString = nullptr,
int versionHint = 0);
/** Creates a AudioParameterFloat with an ID, name, and range.
On creation, its value is set to the default value.