#include <DSSIPluginFactory.h>

Inheritance diagram for DSSIPluginFactory:
Inheritance graph
Collaboration diagram for DSSIPluginFactory:
Collaboration graph

Public Member Functions

virtual ~DSSIPluginFactory ()
 
void enumeratePlugins (std::vector< QString > &list) override
 Append to the given list descriptions of all the available plugins and their ports. More...
 
std::shared_ptr< RealTimePluginInstanceinstantiatePlugin (QString identifier, int clientId, int position, sv_samplerate_t sampleRate, int blockSize, int channels) override
 Instantiate a plugin. More...
 
void discoverPlugins () override
 Look up the plugin path and find the plugins in it. More...
 
const std::vector< QString > & getPluginIdentifiers () const override
 Return a reference to a list of all plugin identifiers that can be created by this factory. More...
 
RealTimePluginDescriptor getPluginDescriptor (QString identifier) const override
 Get some basic information about a plugin (rapidly). More...
 
QString getPluginCategory (QString identifier) override
 Get category metadata about a plugin (without instantiating it). More...
 
QString getPluginLibraryPath (QString identifier) override
 Get the full file path (including both directory and filename) of the library file that provides a given plugin identifier. More...
 
float getPortMinimum (const LADSPA_Descriptor *, int port)
 
float getPortMaximum (const LADSPA_Descriptor *, int port)
 
float getPortDefault (const LADSPA_Descriptor *, int port)
 
float getPortQuantization (const LADSPA_Descriptor *, int port)
 
int getPortDisplayHint (const LADSPA_Descriptor *, int port)
 

Static Public Member Functions

static std::vector< QString > getPluginPath ()
 
static RealTimePluginFactoryinstance (QString pluginType)
 
static RealTimePluginFactoryinstanceFor (QString identifier)
 
static std::vector< QString > getAllPluginIdentifiers ()
 
static void enumerateAllPlugins (std::vector< QString > &)
 
static void setSampleRate (sv_samplerate_t sampleRate)
 

Protected Types

typedef std::map< QString, void * > LibraryHandleMap
 

Protected Member Functions

 DSSIPluginFactory ()
 
PluginScan::PluginType getPluginType () const override
 
std::vector< QString > getLRDFPath (QString &baseUri) override
 
void discoverPluginsFrom (QString soName) override
 
const LADSPA_Descriptor * getLADSPADescriptor (QString identifier) override
 
virtual const DSSI_Descriptor * getDSSIDescriptor (QString identifier)
 
virtual void generateTaxonomy (QString uri, QString base)
 
virtual void generateFallbackCategories ()
 
void loadLibrary (QString soName)
 
void unloadLibrary (QString soName)
 
void unloadUnusedLibraries ()
 

Protected Attributes

DSSI_Host_Descriptor m_hostDescriptor
 
std::vector< QString > m_identifiers
 
std::map< QString, QString > m_libraries
 
std::map< QString, RealTimePluginDescriptorm_rtDescriptors
 
std::map< QString, QString > m_taxonomy
 
std::map< unsigned long, QString > m_lrdfTaxonomy
 
std::map< unsigned long, std::map< int, float > > m_portDefaults
 
std::set< std::weak_ptr< RealTimePluginInstance >, std::owner_less< std::weak_ptr< RealTimePluginInstance > > > m_instances
 
LibraryHandleMap m_libraryHandles
 

Static Protected Attributes

static sv_samplerate_t m_sampleRate = 48000
 

Friends

class RealTimePluginFactory
 

Detailed Description

Definition at line 33 of file DSSIPluginFactory.h.

Member Typedef Documentation

typedef std::map<QString, void *> LADSPAPluginFactory::LibraryHandleMap
protectedinherited

Definition at line 101 of file LADSPAPluginFactory.h.

Constructor & Destructor Documentation

DSSIPluginFactory::~DSSIPluginFactory ( )
virtual

Definition at line 54 of file DSSIPluginFactory.cpp.

DSSIPluginFactory::DSSIPluginFactory ( )
protected

Member Function Documentation

void DSSIPluginFactory::enumeratePlugins ( std::vector< QString > &  list)
overridevirtual
std::shared_ptr< RealTimePluginInstance > DSSIPluginFactory::instantiatePlugin ( QString  identifier,
int  clientId,
int  position,
sv_samplerate_t  sampleRate,
int  blockSize,
int  channels 
)
overridevirtual

Instantiate a plugin.

Implements RealTimePluginFactory.

Definition at line 114 of file DSSIPluginFactory.cpp.

References getDSSIDescriptor(), RealTimePluginFactory::instance(), and LADSPAPluginFactory::m_instances.

std::vector< QString > DSSIPluginFactory::getPluginPath ( )
static

Definition at line 208 of file DSSIPluginFactory.cpp.

References DEFAULT_DSSI_PATH, getEnvUtf8(), and PATH_SEPARATOR.

Referenced by getLRDFPath().

PluginScan::PluginType DSSIPluginFactory::getPluginType ( ) const
inlineoverrideprotectedvirtual
std::vector< QString > DSSIPluginFactory::getLRDFPath ( QString &  baseUri)
overrideprotectedvirtual

Reimplemented from LADSPAPluginFactory.

Definition at line 256 of file DSSIPluginFactory.cpp.

References getPluginPath().

Referenced by getPluginType().

const LADSPA_Descriptor * DSSIPluginFactory::getLADSPADescriptor ( QString  identifier)
overrideprotectedvirtual

Reimplemented from LADSPAPluginFactory.

Definition at line 199 of file DSSIPluginFactory.cpp.

References getDSSIDescriptor().

Referenced by getPluginType().

void LADSPAPluginFactory::discoverPlugins ( )
overridevirtualinherited
const std::vector< QString > & LADSPAPluginFactory::getPluginIdentifiers ( ) const
overridevirtualinherited

Return a reference to a list of all plugin identifiers that can be created by this factory.

Implements RealTimePluginFactory.

Definition at line 62 of file LADSPAPluginFactory.cpp.

References LADSPAPluginFactory::m_identifiers.

RealTimePluginDescriptor LADSPAPluginFactory::getPluginDescriptor ( QString  identifier) const
overridevirtualinherited

Get some basic information about a plugin (rapidly).

Implements RealTimePluginFactory.

Definition at line 136 of file LADSPAPluginFactory.cpp.

References LADSPAPluginFactory::m_rtDescriptors.

QString LADSPAPluginFactory::getPluginCategory ( QString  identifier)
overridevirtualinherited

Get category metadata about a plugin (without instantiating it).

Implements RealTimePluginFactory.

Definition at line 852 of file LADSPAPluginFactory.cpp.

References LADSPAPluginFactory::m_taxonomy.

QString LADSPAPluginFactory::getPluginLibraryPath ( QString  identifier)
overridevirtualinherited

Get the full file path (including both directory and filename) of the library file that provides a given plugin identifier.

Note getPluginIdentifiers() must have been called before this has access to the necessary information.

Implements RealTimePluginFactory.

Definition at line 68 of file LADSPAPluginFactory.cpp.

References LADSPAPluginFactory::m_libraries.

float LADSPAPluginFactory::getPortQuantization ( const LADSPA_Descriptor *  descriptor,
int  port 
)
inherited
int LADSPAPluginFactory::getPortDisplayHint ( const LADSPA_Descriptor *  descriptor,
int  port 
)
inherited
void LADSPAPluginFactory::generateTaxonomy ( QString  uri,
QString  base 
)
protectedvirtualinherited
void LADSPAPluginFactory::generateFallbackCategories ( )
protectedvirtualinherited
void LADSPAPluginFactory::loadLibrary ( QString  soName)
protectedinherited
void LADSPAPluginFactory::unloadLibrary ( QString  soName)
protectedinherited
std::vector< QString > RealTimePluginFactory::getAllPluginIdentifiers ( )
staticinherited
void RealTimePluginFactory::enumerateAllPlugins ( std::vector< QString > &  list)
staticinherited
static void RealTimePluginFactory::setSampleRate ( sv_samplerate_t  sampleRate)
inlinestaticinherited

Definition at line 60 of file RealTimePluginFactory.h.

Friends And Related Function Documentation

friend class RealTimePluginFactory
friend

Definition at line 52 of file DSSIPluginFactory.h.

Member Data Documentation

DSSI_Host_Descriptor DSSIPluginFactory::m_hostDescriptor
protected

Definition at line 65 of file DSSIPluginFactory.h.

Referenced by DSSIPluginFactory(), and getDSSIDescriptor().

std::vector<QString> LADSPAPluginFactory::m_identifiers
protectedinherited
std::map<QString, QString> LADSPAPluginFactory::m_libraries
protectedinherited
std::map<QString, RealTimePluginDescriptor> LADSPAPluginFactory::m_rtDescriptors
protectedinherited
std::map<unsigned long, QString> LADSPAPluginFactory::m_lrdfTaxonomy
protectedinherited
std::map<unsigned long, std::map<int, float> > LADSPAPluginFactory::m_portDefaults
protectedinherited
std::set<std::weak_ptr<RealTimePluginInstance>, std::owner_less<std::weak_ptr<RealTimePluginInstance> > > LADSPAPluginFactory::m_instances
protectedinherited
sv_samplerate_t RealTimePluginFactory::m_sampleRate = 48000
staticprotectedinherited

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