FahlGrahn Audio v1.0.0
Loading...
Searching...
No Matches
juce::StandalonePluginHolder Class Reference

#include <CustomStandaloneFilterWindow.h>

Inheritance diagram for juce::StandalonePluginHolder:
Collaboration diagram for juce::StandalonePluginHolder:

Classes

struct  PluginInOuts
 

Public Member Functions

 StandalonePluginHolder (PropertySet *settingsToUse, bool takeOwnershipOfSettings=true, const String &preferredDefaultDeviceName=String(), const AudioDeviceManager::AudioDeviceSetup *preferredSetupOptions=nullptr, const Array< PluginInOuts > &channels=Array< PluginInOuts >(), bool shouldAutoOpenMidiDevices=false)
 
void init (bool enableAudioInput, const String &preferredDefaultDeviceName)
 
virtual void createPlugin ()
 
virtual void deletePlugin ()
 
int getNumInputChannels () const
 
int getNumOutputChannels () const
 
Value & getMuteInputValue ()
 
bool getProcessorHasPotentialFeedbackLoop () const
 
void valueChanged (Value &value) override
 
File getLastFile () const
 
void setLastFile (const FileChooser &fc)
 
void askUserToSaveState (const String &fileSuffix=String())
 
void askUserToLoadState (const String &fileSuffix=String())
 
void startPlaying ()
 
void stopPlaying ()
 
void showAudioSettingsDialog ()
 
void saveAudioDeviceState ()
 
void reloadAudioDeviceState (bool enableAudioInput, const String &preferredDefaultDeviceName, const AudioDeviceManager::AudioDeviceSetup *preferredSetupOptions)
 
void savePluginState ()
 
void reloadPluginState ()
 
void switchToHostApplication ()
 
bool isInterAppAudioConnected ()
 
Image getIAAHostIcon (int size)
 

Static Public Member Functions

static String getFilePatterns (const String &fileSuffix)
 
static StandalonePluginHoldergetInstance ()
 

Public Attributes

OptionalScopedPointer< PropertySet > settings
 
std::unique_ptr< AudioProcessor > processor
 
AudioDeviceManager deviceManager
 
AudioProcessorPlayer player
 
Array< PluginInOutschannelConfiguration
 
bool processorHasPotentialFeedbackLoop = true
 
std::atomic< bool > muteInput {true}
 
Value shouldMuteInput
 
AudioBuffer< float > emptyBuffer
 
bool autoOpenMidiDevices
 
std::unique_ptr< AudioDeviceManager::AudioDeviceSetup > options
 
Array< MidiDeviceInfo > lastMidiDevices
 
std::unique_ptr< FileChooser > stateFileChooser
 
ScopedMessageBox messageBox
 

Detailed Description

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.

@tags{Audio}

Constructor & Destructor Documentation

◆ StandalonePluginHolder()

juce::StandalonePluginHolder::StandalonePluginHolder ( PropertySet * settingsToUse,
bool takeOwnershipOfSettings = true,
const String & preferredDefaultDeviceName = String(),
const AudioDeviceManager::AudioDeviceSetup * preferredSetupOptions = nullptr,
const Array< PluginInOuts > & channels = Array<PluginInOuts>(),
bool shouldAutoOpenMidiDevices = false )
inline

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.

Member Function Documentation

◆ askUserToLoadState()

void juce::StandalonePluginHolder::askUserToLoadState ( const String & fileSuffix = String())
inline

Pops up a dialog letting the user re-load the processor's state from a file.

◆ askUserToSaveState()

void juce::StandalonePluginHolder::askUserToSaveState ( const String & fileSuffix = String())
inline

Pops up a dialog letting the user save the processor's state to a file.

◆ showAudioSettingsDialog()

void juce::StandalonePluginHolder::showAudioSettingsDialog ( )
inline

Shows an audio properties dialog box modally.


The documentation for this class was generated from the following file: