mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Added AudioProcessor::getParameterLabel method.
This commit is contained in:
parent
7fbd29e84e
commit
a4d898513b
4 changed files with 13 additions and 15 deletions
|
|
@ -778,14 +778,14 @@ private:
|
|||
//==============================================================================
|
||||
int dispatch (const int opcode, const int index, const int value, void* const ptr, float opt) const;
|
||||
bool restoreProgramSettings (const fxProgram* const prog);
|
||||
const String getCurrentProgramName();
|
||||
String getCurrentProgramName();
|
||||
void setParamsInProgramBlock (fxProgram* const prog);
|
||||
void updateStoredProgramNames();
|
||||
void initialise();
|
||||
void handleMidiFromPlugin (const VstEvents* const events);
|
||||
void createTempParameterStore (MemoryBlock& dest);
|
||||
void restoreFromTempParameterStore (const MemoryBlock& mb);
|
||||
const String getParameterLabel (int index) const;
|
||||
String getParameterLabel (int index) const;
|
||||
|
||||
bool usesChunks() const noexcept { return effect != nullptr && (effect->flags & effFlagsProgramChunks) != 0; }
|
||||
void getChunkData (MemoryBlock& mb, bool isPreset, int maxSizeMB) const;
|
||||
|
|
@ -2475,7 +2475,7 @@ const String VSTPluginInstance::getParameterName (int index)
|
|||
return String::empty;
|
||||
}
|
||||
|
||||
const String VSTPluginInstance::getParameterLabel (int index) const
|
||||
String VSTPluginInstance::getParameterLabel (int index) const
|
||||
{
|
||||
if (effect != nullptr)
|
||||
{
|
||||
|
|
@ -2601,7 +2601,7 @@ void VSTPluginInstance::updateStoredProgramNames()
|
|||
}
|
||||
}
|
||||
|
||||
const String VSTPluginInstance::getCurrentProgramName()
|
||||
String VSTPluginInstance::getCurrentProgramName()
|
||||
{
|
||||
String name;
|
||||
|
||||
|
|
|
|||
|
|
@ -58,14 +58,13 @@ public:
|
|||
E.g. For a VST, this value can be cast to an AEffect*. For an AudioUnit, it can be
|
||||
cast to an AudioUnit handle.
|
||||
*/
|
||||
virtual void* getPlatformSpecificData() { return nullptr; }
|
||||
virtual void* getPlatformSpecificData() { return nullptr; }
|
||||
|
||||
/** For some formats (currently AudioUnit), this forces a reload of the list of
|
||||
available parameters.
|
||||
*/
|
||||
virtual void refreshParameterList() {}
|
||||
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
AudioPluginInstance() {}
|
||||
|
|
|
|||
|
|
@ -196,15 +196,9 @@ void AudioProcessor::updateHostDisplay()
|
|||
}
|
||||
}
|
||||
|
||||
bool AudioProcessor::isParameterAutomatable (int /*parameterIndex*/) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AudioProcessor::isMetaParameter (int /*parameterIndex*/) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
String AudioProcessor::getParameterLabel (int) const { return String::empty; }
|
||||
bool AudioProcessor::isParameterAutomatable (int) const { return true; }
|
||||
bool AudioProcessor::isMetaParameter (int) const { return false; }
|
||||
|
||||
void AudioProcessor::suspendProcessing (const bool shouldBeSuspended)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -389,6 +389,11 @@ public:
|
|||
/** Returns the value of a parameter as a text string. */
|
||||
virtual const String getParameterText (int parameterIndex) = 0;
|
||||
|
||||
/** Some plugin types may be able to return a label string for a
|
||||
parameter's units.
|
||||
*/
|
||||
virtual String getParameterLabel (int index) const;
|
||||
|
||||
/** The host will call this method to change the value of one of the filter's parameters.
|
||||
|
||||
The host may call this at any time, including during the audio processing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue