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:
parent
5186ac71e2
commit
7068e70758
17 changed files with 118 additions and 39 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue