Gin
|
A class that can be used to run a simple standalone application containing your filter. More...
#include <gin_standalonefilterwindow.h>
Inherits juce::DocumentWindow, and juce::Button::Listener.
Public Types | |
typedef StandalonePluginHolder::PluginInOuts | PluginInOuts |
Public Member Functions | |
StandaloneFilterWindow (const juce::String &title, juce::Colour backgroundColour, std::unique_ptr< StandalonePluginHolder > pluginHolderIn) | |
StandaloneFilterWindow (const juce::String &title, juce::Colour backgroundColour, juce::PropertySet *settingsToUse, bool takeOwnershipOfSettings, const juce::String &preferredDefaultDeviceName=juce::String(), const juce::AudioDeviceManager::AudioDeviceSetup *preferredSetupOptions=nullptr, const juce::Array< PluginInOuts > &constrainToConfiguration={}, bool autoOpenMidiDevices=true) | |
Creates a window with a given title and colour. | |
~StandaloneFilterWindow () override | |
PluginWrapper * | getAudioProcessor () const noexcept |
juce::AudioDeviceManager & | getDeviceManager () const noexcept |
void | resetToDefaultState () |
Deletes and re-creates the plugin, resetting it to its default state. | |
void | reopenEditor () |
void | closeButtonPressed () override |
void | resized () override |
virtual StandalonePluginHolder * | getPluginHolder () |
Public Attributes | |
std::unique_ptr< StandalonePluginHolder > | pluginHolder |
A class that can be used to run a simple standalone application containing your filter.
Just create one of these objects in your JUCEApplicationBase::initialise() method, and let it do its work. It will create your filter object using the same createPluginFilter() function that the other plugin wrappers use.
StandaloneFilterWindow::StandaloneFilterWindow | ( | const juce::String & | title, |
juce::Colour | backgroundColour, | ||
std::unique_ptr< StandalonePluginHolder > | pluginHolderIn | ||
) |
StandaloneFilterWindow::StandaloneFilterWindow | ( | const juce::String & | title, |
juce::Colour | backgroundColour, | ||
juce::PropertySet * | settingsToUse, | ||
bool | takeOwnershipOfSettings, | ||
const juce::String & | preferredDefaultDeviceName = juce::String() , |
||
const juce::AudioDeviceManager::AudioDeviceSetup * | preferredSetupOptions = nullptr , |
||
const juce::Array< PluginInOuts > & | constrainToConfiguration = {} , |
||
bool | autoOpenMidiDevices = true |
||
) |
Creates a window with a given title and colour.
The settings object can be a PropertySet that the class should use to store its settings (it can also be null). If takeOwnershipOfSettings is true, then the settings object will be owned and deleted by this object.
|
override |
|
noexcept |
References pluginHolder.
|
noexcept |
References pluginHolder.
void StandaloneFilterWindow::resetToDefaultState | ( | ) |
Deletes and re-creates the plugin, resetting it to its default state.
void StandaloneFilterWindow::reopenEditor | ( | ) |
|
override |
|
override |
|
virtual |
References pluginHolder.
std::unique_ptr<StandalonePluginHolder> StandaloneFilterWindow::pluginHolder |
Referenced by getAudioProcessor(), getDeviceManager(), and getPluginHolder().