Browse Source

Renamed 'generic' parameter Category enum to something less generic

tags/2021-05-28
hogliux 8 years ago
parent
commit
ba512e96fd
4 changed files with 7 additions and 7 deletions
  1. +2
    -2
      modules/juce_audio_processors/processors/juce_AudioProcessor.cpp
  2. +3
    -3
      modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h
  3. +1
    -1
      modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h
  4. +1
    -1
      modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h

+ 2
- 2
modules/juce_audio_processors/processors/juce_AudioProcessor.cpp 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


+ 3
- 3
modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h 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


+ 1
- 1
modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h 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.


+ 1
- 1
modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h 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();


Loading…
Cancel
Save