JUCE
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
StandalonePluginHolder Class Reference

An object that creates and plays a standalone instance of an AudioProcessor. More...

Public Member Functions

 StandalonePluginHolder (PropertySet *settingsToUse, bool takeOwnershipOfSettings)
 Creates an instance of the default plugin. More...
 
virtual ~StandalonePluginHolder ()
 
virtual void createPlugin ()
 
virtual void deletePlugin ()
 
File getLastFile () const
 
void setLastFile (const FileChooser &fc)
 
void askUserToSaveState (const String &fileSuffix=String())
 Pops up a dialog letting the user save the processor's state to a file. More...
 
void askUserToLoadState (const String &fileSuffix=String())
 Pops up a dialog letting the user re-load the processor's state from a file. More...
 
void startPlaying ()
 
void stopPlaying ()
 
void showAudioSettingsDialog ()
 Shows an audio properties dialog box modally. More...
 
void saveAudioDeviceState ()
 
void reloadAudioDeviceState ()
 
void savePluginState ()
 
void reloadPluginState ()
 

Static Public Member Functions

static String getFilePatterns (const String &fileSuffix)
 

Public Attributes

OptionalScopedPointer< PropertySetsettings
 
ScopedPointer< AudioProcessorprocessor
 
AudioDeviceManager deviceManager
 
AudioProcessorPlayer player
 

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.

Constructor & Destructor Documentation

StandalonePluginHolder::StandalonePluginHolder ( PropertySet settingsToUse,
bool  takeOwnershipOfSettings 
)

Creates an instance of the default plugin.

The settings object can be a PropertySet that the class should use to store its settings - the object that is passed-in will be owned by this class and deleted automatically when no longer needed. (It can also be null)

References createPlugin(), reloadPluginState(), and startPlaying().

Referenced by StandaloneFilterWindow::StandaloneFilterWindow().

virtual StandalonePluginHolder::~StandalonePluginHolder ( )
virtual

References deletePlugin().

Member Function Documentation

virtual void StandalonePluginHolder::createPlugin ( )
virtual
virtual void StandalonePluginHolder::deletePlugin ( )
virtual

References processor, and stopPlaying().

Referenced by ~StandalonePluginHolder().

static String StandalonePluginHolder::getFilePatterns ( const String fileSuffix)
static
File StandalonePluginHolder::getLastFile ( ) const
void StandalonePluginHolder::setLastFile ( const FileChooser fc)
void StandalonePluginHolder::askUserToSaveState ( const String fileSuffix = String())
void StandalonePluginHolder::askUserToLoadState ( const String fileSuffix = String())
void StandalonePluginHolder::startPlaying ( )
void StandalonePluginHolder::stopPlaying ( )
void StandalonePluginHolder::showAudioSettingsDialog ( )
void StandalonePluginHolder::saveAudioDeviceState ( )
void StandalonePluginHolder::reloadAudioDeviceState ( )
void StandalonePluginHolder::savePluginState ( )
void StandalonePluginHolder::reloadPluginState ( )

Member Data Documentation

OptionalScopedPointer<PropertySet> StandalonePluginHolder::settings
ScopedPointer<AudioProcessor> StandalonePluginHolder::processor
AudioDeviceManager StandalonePluginHolder::deviceManager
AudioProcessorPlayer StandalonePluginHolder::player

Referenced by startPlaying(), and stopPlaying().


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