|
Gin
|
An object that creates and plays a standalone instance of an AudioProcessor. More...
#include <gin_standalonepluginholder.h>
Inherits juce::AudioIODeviceCallback, juce::Timer, and juce::Value::Listener.
Classes | |
| struct | PluginInOuts |
| Structure used for the number of inputs and outputs. More... | |
Static Public Member Functions | |
| static juce::String | getFilePatterns (const juce::String &fileSuffix) |
| static StandalonePluginHolder * | getInstance () |
Public Attributes | |
| juce::OptionalScopedPointer< juce::PropertySet > | settings |
| std::unique_ptr< PluginWrapper > | processor |
| juce::AudioDeviceManager | deviceManager |
| juce::AudioProcessorPlayer | player |
| juce::Array< PluginInOuts > | channelConfiguration |
| bool | processorHasPotentialFeedbackLoop = true |
| std::atomic< bool > | muteInput { true } |
| juce::Value | shouldMuteInput |
| juce::Value | shouldShowSidebar |
| juce::AudioBuffer< float > | emptyBuffer |
| bool | autoOpenMidiDevices |
| std::unique_ptr< juce::AudioDeviceManager::AudioDeviceSetup > | options |
| juce::Array< juce::MidiDeviceInfo > | lastMidiDevices |
| std::unique_ptr< juce::FileChooser > | stateFileChooser |
| juce::ScopedMessageBox | messageBox |
An object that creates and plays a standalone instance of an AudioProcessor.
The object will create your processor using the same createPluginFilter() function that the other plugin wrappers use, and will run it through the computer's audio/MIDI devices using AudioDeviceManager and AudioProcessorPlayer.
| StandalonePluginHolder::StandalonePluginHolder | ( | juce::PropertySet * | settingsToUse, |
| bool | takeOwnershipOfSettings = true, |
||
| const juce::String & | preferredDefaultDeviceName = juce::String(), |
||
| const juce::AudioDeviceManager::AudioDeviceSetup * | preferredSetupOptions = nullptr, |
||
| const juce::Array< PluginInOuts > & | channels = juce::Array< PluginInOuts >(), |
||
| bool | shouldAutoOpenMidiDevices = true |
||
| ) |
Creates an instance of the default plugin.
The settings object can be a PropertySet that the class should use to store its settings - the takeOwnershipOfSettings indicates whether this object will delete the settings automatically when no longer needed. The settings can also be nullptr.
A default device name can be passed in.
Preferably a complete setup options object can be used, which takes precedence over the preferredDefaultDeviceName and allows you to select the input & output device names, sample rate, buffer size etc.
In all instances, the settingsToUse will take precedence over the "preferred" options if not null.
|
override |
| void StandalonePluginHolder::init | ( | bool | enableAudioInput, |
| const juce::String & | preferredDefaultDeviceName | ||
| ) |
| void StandalonePluginHolder::createPlugin | ( | ) |
| void StandalonePluginHolder::deletePlugin | ( | ) |
| int StandalonePluginHolder::getNumInputChannels | ( | ) | const |
| int StandalonePluginHolder::getNumOutputChannels | ( | ) | const |
|
static |
| juce::Value & StandalonePluginHolder::getMuteInputValue | ( | ) |
References shouldMuteInput.
| bool StandalonePluginHolder::getProcessorHasPotentialFeedbackLoop | ( | ) | const |
References processorHasPotentialFeedbackLoop.
| juce::Value & StandalonePluginHolder::getShowSidebarValue | ( | ) |
References shouldShowSidebar.
|
override |
References muteInput, and shouldMuteInput.
| juce::File StandalonePluginHolder::getLastFile | ( | ) | const |
Pops up a dialog letting the user save the processor's state to a file.
Pops up a dialog letting the user re-load the processor's state from a file.
| void StandalonePluginHolder::startPlaying | ( | ) |
| void StandalonePluginHolder::stopPlaying | ( | ) |
| void StandalonePluginHolder::showAudioSettingsDialog | ( | ) |
Shows an audio properties dialog box modally.
| void StandalonePluginHolder::saveAudioDeviceState | ( | ) |
| void StandalonePluginHolder::reloadAudioDeviceState | ( | bool | enableAudioInput, |
| const juce::String & | preferredDefaultDeviceName, | ||
| const juce::AudioDeviceManager::AudioDeviceSetup * | preferredSetupOptions | ||
| ) |
| void StandalonePluginHolder::savePluginState | ( | ) |
| void StandalonePluginHolder::reloadPluginState | ( | ) |
| void StandalonePluginHolder::switchToHostApplication | ( | ) |
| bool StandalonePluginHolder::isInterAppAudioConnected | ( | ) |
| juce::Image StandalonePluginHolder::getIAAHostIcon | ( | int | size | ) |
|
static |
| juce::OptionalScopedPointer<juce::PropertySet> StandalonePluginHolder::settings |
| std::unique_ptr<PluginWrapper> StandalonePluginHolder::processor |
| juce::AudioDeviceManager StandalonePluginHolder::deviceManager |
| juce::AudioProcessorPlayer StandalonePluginHolder::player |
| juce::Array<PluginInOuts> StandalonePluginHolder::channelConfiguration |
Referenced by getProcessorHasPotentialFeedbackLoop().
Referenced by valueChanged().
| juce::Value StandalonePluginHolder::shouldMuteInput |
Referenced by getMuteInputValue(), and valueChanged().
| juce::Value StandalonePluginHolder::shouldShowSidebar |
Referenced by getShowSidebarValue().
| juce::AudioBuffer<float> StandalonePluginHolder::emptyBuffer |
| bool StandalonePluginHolder::autoOpenMidiDevices |
| std::unique_ptr<juce::AudioDeviceManager::AudioDeviceSetup> StandalonePluginHolder::options |
| juce::Array<juce::MidiDeviceInfo> StandalonePluginHolder::lastMidiDevices |
| std::unique_ptr<juce::FileChooser> StandalonePluginHolder::stateFileChooser |
| juce::ScopedMessageBox StandalonePluginHolder::messageBox |