|
Photosine 0.5
|
#include <PluginManagerInstance.h>
Public Member Functions | |
| PluginManagerInstance (std::shared_ptr< juce::AudioPluginInstance > newPluginInstance, juce::ValueTree pluginValueTreeToUse) | |
| ~PluginManagerInstance () | |
| bool | is (juce::Identifier identifier) |
| juce::Identifier | getUniqueIdentifier () |
| std::shared_ptr< juce::AudioPluginInstance > | getPluginInstance () |
| std::shared_ptr< juce::AudioProcessorEditor > | getEditor () |
| juce::ValueTree | getPluginValueTree () |
| bool | operator== (PluginManagerInstance const &comparisonInstance) |
Overrides juce::ValueTree::AudioProcessorParameter::Listener | |
| void | parameterValueChanged (int parameterIndex, float newValue) override |
| void | parameterGestureChanged (int parameterIndex, bool gestureIsStarting) override |
Private Member Functions | |
| void | registerListenerForParameters () |
| void | updatePluginState () |
| void | timerCallback () override |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PluginManagerInstance) | |
Private Attributes | |
| juce::Identifier | uniqueIdentifier |
| std::shared_ptr< juce::AudioPluginInstance > | pluginInstance |
| std::shared_ptr< juce::AudioProcessorEditor > | editor |
| juce::ValueTree | pluginValueTree |
| bool | pluginStateChanged = false |
Container class for PluginManager. This contains a juce::AudioProcessorInstance. A juce::juce::AudioProcessorEditor is created on construction. Listens for changes to plugin parameters and copies state into juce::ValueTree if needed. For performance reasons, the listener sets a flag (pluginStateChanged) and a juce::Timer checks for that flag.
| PluginInterface::PluginManagerInstance::PluginManagerInstance | ( | std::shared_ptr< juce::AudioPluginInstance > | newPluginInstance, |
| juce::ValueTree | pluginValueTreeToUse ) |
| newPluginInstance | the plugin instance for an instance to contain. |
| pluginValueTreeToUse | value tree representing this plugin. |
| PluginInterface::PluginManagerInstance::~PluginManagerInstance | ( | ) |
| std::shared_ptr< juce::AudioProcessorEditor > PluginInterface::PluginManagerInstance::getEditor | ( | ) |
Returns the editor component for this instance.
| std::shared_ptr< juce::AudioPluginInstance > PluginInterface::PluginManagerInstance::getPluginInstance | ( | ) |
Returns the plugin instance stored.
| juce::ValueTree PluginInterface::PluginManagerInstance::getPluginValueTree | ( | ) |
Returns the value tree representing this plugin.
| juce::Identifier PluginInterface::PluginManagerInstance::getUniqueIdentifier | ( | ) |
Returns the plugin's unique ID.
| bool PluginInterface::PluginManagerInstance::is | ( | juce::Identifier | identifier | ) |
Quick == based just on identifier.
|
private |
| bool PluginInterface::PluginManagerInstance::operator== | ( | PluginManagerInstance const & | comparisonInstance | ) |
|
override |
|
override |
|
private |
Adds this as a listener to every parameter in pluginInstance
|
overrideprivate |
Checks if plugin state has changed, calls updatePluginState() if true.
|
private |
Called by timerCallback() if pluginStateChanged = true
|
private |
Plugin editor.
|
private |
Actual plugin instance.
|
private |
|
private |
Value tree representing this plugin.
|
private |
Unique ID for this plugin.