mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Renamed 'generic' parameter Category enum to something less generic
This commit is contained in:
parent
da3f3a8eac
commit
ba512e96fd
4 changed files with 7 additions and 7 deletions
|
|
@ -653,7 +653,7 @@ AudioProcessorParameter::Category AudioProcessor::getParameterCategory (int inde
|
|||
if (AudioProcessorParameter* p = managedParameters[index])
|
||||
return p->getCategory();
|
||||
|
||||
return AudioProcessorParameter::generic;
|
||||
return AudioProcessorParameter::genericParameter;
|
||||
}
|
||||
|
||||
AudioProcessorParameter* AudioProcessor::getParamChecked (int index) const noexcept
|
||||
|
|
@ -1312,7 +1312,7 @@ void AudioProcessorParameter::endChangeGesture()
|
|||
bool AudioProcessorParameter::isOrientationInverted() const { return false; }
|
||||
bool AudioProcessorParameter::isAutomatable() const { return true; }
|
||||
bool AudioProcessorParameter::isMetaParameter() const { return false; }
|
||||
AudioProcessorParameter::Category AudioProcessorParameter::getCategory() const { return generic; }
|
||||
AudioProcessorParameter::Category AudioProcessorParameter::getCategory() const { return genericParameter; }
|
||||
int AudioProcessorParameter::getNumSteps() const { return AudioProcessor::getDefaultNumParameterSteps(); }
|
||||
|
||||
String AudioProcessorParameter::getText (float value, int /*maximumStringLength*/) const
|
||||
|
|
|
|||
|
|
@ -145,10 +145,10 @@ public:
|
|||
|
||||
enum Category
|
||||
{
|
||||
generic = (0 << 16) | 0, /** If your parameter is not a meter then you should use this category */
|
||||
genericParameter = (0 << 16) | 0, /** If your parameter is not a meter then you should use this category */
|
||||
|
||||
inputGain = (1 << 16) | 0, /** Currently not used */
|
||||
outputGain = (1 << 16) | 1,
|
||||
inputGain = (1 << 16) | 0, /** Currently not used */
|
||||
outputGain = (1 << 16) | 1,
|
||||
|
||||
/** The following categories tell the host that this parameter is a meter level value
|
||||
and therefore read-only. Most hosts will display these type of parameters as
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public:
|
|||
NormalisableRange<float> normalisableRange,
|
||||
float defaultValue,
|
||||
const String& label = String(),
|
||||
Category category = AudioProcessorParameter::generic);
|
||||
Category category = AudioProcessorParameter::genericParameter);
|
||||
|
||||
/** Creates a AudioParameterFloat with an ID, name, and range.
|
||||
On creation, its value is set to the default value.
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public:
|
|||
AudioProcessorParameterWithID (const String& parameterID,
|
||||
const String& name,
|
||||
const String& label = String(),
|
||||
Category category = AudioProcessorParameter::generic);
|
||||
Category category = AudioProcessorParameter::genericParameter);
|
||||
|
||||
/** Destructor. */
|
||||
~AudioProcessorParameterWithID();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue