1
0
Fork 0
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:
hogliux 2017-01-12 12:54:50 +00:00
parent da3f3a8eac
commit ba512e96fd
4 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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();