svcore
1.9
|
#include <LADSPAPluginInstance.h>
Public Types | |
typedef float | sample_t |
typedef std::map< std::string, std::string > | ConfigurationPairMap |
Public Member Functions | |
virtual | ~LADSPAPluginInstance () |
bool | isOK () const override |
int | getClientId () const |
QString | getPluginIdentifier () const override |
int | getPosition () const |
std::string | getIdentifier () const override |
std::string | getName () const override |
std::string | getDescription () const override |
std::string | getMaker () const override |
int | getPluginVersion () const override |
std::string | getCopyright () const override |
void | run (const RealTime &rt, int count=0) override |
Run for one block, starting at the given time. More... | |
int | getParameterCount () const override |
void | setParameterValue (int parameter, float value) override |
float | getParameterValue (int parameter) const override |
float | getParameterDefault (int parameter) const override |
int | getParameterDisplayHint (int parameter) const override |
ParameterList | getParameterDescriptors () const override |
float | getParameter (std::string) const override |
void | setParameter (std::string, float) override |
int | getBufferSize () const override |
int | getAudioInputCount () const override |
int | getAudioOutputCount () const override |
sample_t ** | getAudioInputBuffers () override |
sample_t ** | getAudioOutputBuffers () override |
int | getControlOutputCount () const override |
float | getControlOutputValue (int n) const override |
bool | isBypassed () const override |
void | setBypassed (bool bypassed) override |
sv_frame_t | getLatency () override |
void | silence () override |
void | setIdealChannelCount (int channels) override |
std::string | getType () const override |
virtual std::string | getProgram (int, int) const |
virtual std::string | configure (std::string, std::string) |
virtual void | sendEvent (const RealTime &, const void *) |
virtual void | clearEvents () |
virtual void | discardEvents () |
virtual ConfigurationPairMap | getConfigurePairs () |
Protected Member Functions | |
LADSPAPluginInstance (RealTimePluginFactory *factory, int client, QString identifier, int position, sv_samplerate_t sampleRate, int blockSize, int idealChannelCount, const LADSPA_Descriptor *descriptor) | |
void | init (int idealChannelCount=0) |
void | instantiate (sv_samplerate_t sampleRate) |
void | cleanup () |
void | activate () |
void | deactivate () |
void | connectPorts () |
Protected Attributes | |
int | m_client |
int | m_position |
std::vector< LADSPA_Handle > | m_instanceHandles |
int | m_instanceCount |
const LADSPA_Descriptor * | m_descriptor |
std::vector< std::pair< int, LADSPA_Data * > > | m_controlPortsIn |
std::vector< std::pair< int, LADSPA_Data * > > | m_controlPortsOut |
std::vector< int > | m_audioPortsIn |
std::vector< int > | m_audioPortsOut |
int | m_blockSize |
sample_t ** | m_inputBuffers |
sample_t ** | m_outputBuffers |
bool | m_ownBuffers |
sv_samplerate_t | m_sampleRate |
float * | m_latencyPort |
bool | m_run |
bool | m_bypassed |
RealTimePluginFactory * | m_factory |
QString | m_identifier |
ConfigurationPairMap | m_configurationData |
Friends | |
class | LADSPAPluginFactory |
Detailed Description
Definition at line 36 of file LADSPAPluginInstance.h.
Member Typedef Documentation
|
inherited |
Definition at line 80 of file RealTimePluginInstance.h.
|
inherited |
Definition at line 139 of file RealTimePluginInstance.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 342 of file LADSPAPluginInstance.cpp.
References cleanup(), deactivate(), m_audioPortsIn, m_audioPortsOut, m_controlPortsIn, m_controlPortsOut, m_inputBuffers, m_instanceCount, m_instanceHandles, m_outputBuffers, m_ownBuffers, and SVDEBUG.
|
protected |
Definition at line 36 of file LADSPAPluginInstance.cpp.
References activate(), connectPorts(), init(), instantiate(), isOK(), m_audioPortsIn, m_audioPortsOut, m_inputBuffers, m_instanceCount, m_outputBuffers, and m_ownBuffers.
Member Function Documentation
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 41 of file LADSPAPluginInstance.h.
References m_instanceHandles.
Referenced by LADSPAPluginInstance(), setIdealChannelCount(), and silence().
|
inline |
Definition at line 43 of file LADSPAPluginInstance.h.
References m_client.
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 44 of file LADSPAPluginInstance.h.
References RealTimePluginInstance::m_identifier.
|
inline |
Definition at line 45 of file LADSPAPluginInstance.h.
References getCopyright(), getDescription(), getIdentifier(), getMaker(), getName(), getParameter(), getParameterCount(), getParameterDefault(), getParameterDescriptors(), getParameterDisplayHint(), getParameterValue(), getPluginVersion(), m_position, run(), setParameter(), and setParameterValue().
|
override |
Definition at line 86 of file LADSPAPluginInstance.cpp.
References m_descriptor.
Referenced by getPosition().
|
override |
Definition at line 92 of file LADSPAPluginInstance.cpp.
References m_descriptor.
Referenced by getPosition().
|
override |
Definition at line 98 of file LADSPAPluginInstance.cpp.
Referenced by getPosition().
|
override |
Definition at line 104 of file LADSPAPluginInstance.cpp.
References m_descriptor.
Referenced by getPosition().
|
override |
Definition at line 110 of file LADSPAPluginInstance.cpp.
Referenced by getPosition().
|
override |
Definition at line 116 of file LADSPAPluginInstance.cpp.
References m_descriptor.
Referenced by getPosition().
|
overridevirtual |
Run for one block, starting at the given time.
The start time may be of interest to synths etc that may have queued events waiting. Other plugins can ignore it. The count, if zero, defaults to our fixed buffer size.
Implements RealTimePluginInstance.
Definition at line 541 of file LADSPAPluginInstance.cpp.
References m_blockSize, m_descriptor, m_instanceHandles, and m_run.
Referenced by getLatency(), and getPosition().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 475 of file LADSPAPluginInstance.cpp.
References m_controlPortsIn.
Referenced by getPosition().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 481 of file LADSPAPluginInstance.cpp.
References LADSPAPluginFactory::getPortMaximum(), LADSPAPluginFactory::getPortMinimum(), in_range_for(), m_controlPortsIn, m_descriptor, and RealTimePluginInstance::m_factory.
Referenced by getPosition(), and setParameter().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 508 of file LADSPAPluginInstance.cpp.
References in_range_for(), and m_controlPortsIn.
Referenced by getParameter(), and getPosition().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 515 of file LADSPAPluginInstance.cpp.
References LADSPAPluginFactory::getPortDefault(), in_range_for(), m_controlPortsIn, m_descriptor, and RealTimePluginInstance::m_factory.
Referenced by getPosition().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 528 of file LADSPAPluginInstance.cpp.
References LADSPAPluginFactory::getPortDisplayHint(), in_range_for(), m_controlPortsIn, m_descriptor, RealTimePluginInstance::m_factory, and PortHint::NoHint.
Referenced by getPosition().
|
override |
Definition at line 122 of file LADSPAPluginInstance.cpp.
References LADSPAPluginFactory::getPortDefault(), LADSPAPluginFactory::getPortMaximum(), LADSPAPluginFactory::getPortMinimum(), LADSPAPluginFactory::getPortQuantization(), m_controlPortsIn, m_descriptor, and RealTimePluginInstance::m_factory.
Referenced by getPosition().
|
override |
Definition at line 194 of file LADSPAPluginInstance.cpp.
References getParameterValue(), m_controlPortsIn, and m_descriptor.
Referenced by getPosition().
|
override |
Definition at line 206 of file LADSPAPluginInstance.cpp.
References m_controlPortsIn, m_descriptor, setParameterValue(), and SVDEBUG.
Referenced by getPosition().
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 66 of file LADSPAPluginInstance.h.
References m_blockSize.
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 67 of file LADSPAPluginInstance.h.
References m_audioPortsIn, and m_instanceCount.
Referenced by getLatency().
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 68 of file LADSPAPluginInstance.h.
References m_audioPortsOut, and m_instanceCount.
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 69 of file LADSPAPluginInstance.h.
References m_inputBuffers.
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 70 of file LADSPAPluginInstance.h.
References m_outputBuffers.
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 72 of file LADSPAPluginInstance.h.
References getControlOutputValue(), and m_controlPortsOut.
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 501 of file LADSPAPluginInstance.cpp.
References in_range_for(), and m_controlPortsOut.
Referenced by getControlOutputCount().
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 75 of file LADSPAPluginInstance.h.
References m_bypassed.
|
inlineoverridevirtual |
Implements RealTimePluginInstance.
Definition at line 76 of file LADSPAPluginInstance.h.
References getLatency(), m_bypassed, setIdealChannelCount(), and silence().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 293 of file LADSPAPluginInstance.cpp.
References getAudioInputCount(), m_blockSize, m_inputBuffers, m_latencyPort, m_run, and run().
Referenced by setBypassed().
|
overridevirtual |
Implements RealTimePluginInstance.
Definition at line 310 of file LADSPAPluginInstance.cpp.
References activate(), deactivate(), and isOK().
Referenced by setBypassed(), and setIdealChannelCount().
|
overridevirtual |
!! don't we need to reallocate inputBuffers and outputBuffers?
Implements RealTimePluginInstance.
Definition at line 319 of file LADSPAPluginInstance.cpp.
References activate(), cleanup(), connectPorts(), deactivate(), instantiate(), isOK(), m_audioPortsIn, m_instanceCount, m_sampleRate, and silence().
Referenced by setBypassed().
|
inlineoverride |
Definition at line 83 of file LADSPAPluginInstance.h.
|
protected |
Definition at line 221 of file LADSPAPluginInstance.cpp.
References m_audioPortsIn, m_audioPortsOut, m_controlPortsIn, m_controlPortsOut, m_descriptor, m_instanceCount, m_latencyPort, and SVDEBUG.
Referenced by LADSPAPluginInstance().
|
protected |
Definition at line 381 of file LADSPAPluginInstance.cpp.
References m_descriptor, m_instanceCount, and m_instanceHandles.
Referenced by LADSPAPluginInstance(), and setIdealChannelCount().
|
protected |
Definition at line 568 of file LADSPAPluginInstance.cpp.
References m_descriptor, and m_instanceHandles.
Referenced by setIdealChannelCount(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 411 of file LADSPAPluginInstance.cpp.
References m_descriptor, and m_instanceHandles.
Referenced by LADSPAPluginInstance(), setIdealChannelCount(), and silence().
|
protected |
Definition at line 557 of file LADSPAPluginInstance.cpp.
References m_descriptor, and m_instanceHandles.
Referenced by setIdealChannelCount(), silence(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 422 of file LADSPAPluginInstance.cpp.
References LADSPAPluginFactory::getPortDefault(), m_audioPortsIn, m_audioPortsOut, m_controlPortsIn, m_controlPortsOut, m_descriptor, RealTimePluginInstance::m_factory, m_inputBuffers, m_instanceHandles, and m_outputBuffers.
Referenced by LADSPAPluginInstance(), and setIdealChannelCount().
|
inlinevirtualinherited |
Reimplemented in DSSIPluginInstance.
Definition at line 111 of file RealTimePluginInstance.h.
|
inlinevirtualinherited |
Reimplemented in DSSIPluginInstance.
Definition at line 121 of file RealTimePluginInstance.h.
|
inlinevirtualinherited |
Reimplemented in DSSIPluginInstance.
Definition at line 123 of file RealTimePluginInstance.h.
|
inlinevirtualinherited |
Reimplemented in DSSIPluginInstance.
Definition at line 125 of file RealTimePluginInstance.h.
|
inlinevirtualinherited |
Reimplemented in DSSIPluginInstance.
Definition at line 134 of file RealTimePluginInstance.h.
|
inlinevirtualinherited |
Definition at line 140 of file RealTimePluginInstance.h.
Referenced by TransformFactory::setParametersFromPlugin(), and PluginXml::toXml().
Friends And Related Function Documentation
|
friend |
Definition at line 87 of file LADSPAPluginInstance.h.
Member Data Documentation
|
protected |
Definition at line 110 of file LADSPAPluginInstance.h.
Referenced by getClientId().
|
protected |
Definition at line 111 of file LADSPAPluginInstance.h.
Referenced by getPosition().
|
protected |
Definition at line 112 of file LADSPAPluginInstance.h.
Referenced by activate(), cleanup(), connectPorts(), deactivate(), instantiate(), isOK(), run(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 113 of file LADSPAPluginInstance.h.
Referenced by getAudioInputCount(), getAudioOutputCount(), init(), instantiate(), LADSPAPluginInstance(), setIdealChannelCount(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 114 of file LADSPAPluginInstance.h.
Referenced by activate(), cleanup(), connectPorts(), deactivate(), getCopyright(), getIdentifier(), getMaker(), getName(), getParameter(), getParameterDefault(), getParameterDescriptors(), getParameterDisplayHint(), init(), instantiate(), run(), setParameter(), and setParameterValue().
|
protected |
Definition at line 116 of file LADSPAPluginInstance.h.
Referenced by connectPorts(), getParameter(), getParameterCount(), getParameterDefault(), getParameterDescriptors(), getParameterDisplayHint(), getParameterValue(), init(), setParameter(), setParameterValue(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 117 of file LADSPAPluginInstance.h.
Referenced by connectPorts(), getControlOutputCount(), getControlOutputValue(), init(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 119 of file LADSPAPluginInstance.h.
Referenced by connectPorts(), getAudioInputCount(), init(), LADSPAPluginInstance(), setIdealChannelCount(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 120 of file LADSPAPluginInstance.h.
Referenced by connectPorts(), getAudioOutputCount(), init(), LADSPAPluginInstance(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 122 of file LADSPAPluginInstance.h.
Referenced by getBufferSize(), getLatency(), and run().
|
protected |
Definition at line 123 of file LADSPAPluginInstance.h.
Referenced by connectPorts(), getAudioInputBuffers(), getLatency(), LADSPAPluginInstance(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 124 of file LADSPAPluginInstance.h.
Referenced by connectPorts(), getAudioOutputBuffers(), LADSPAPluginInstance(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 125 of file LADSPAPluginInstance.h.
Referenced by LADSPAPluginInstance(), and ~LADSPAPluginInstance().
|
protected |
Definition at line 126 of file LADSPAPluginInstance.h.
Referenced by setIdealChannelCount().
|
protected |
Definition at line 127 of file LADSPAPluginInstance.h.
Referenced by getLatency(), and init().
|
protected |
Definition at line 128 of file LADSPAPluginInstance.h.
Referenced by getLatency(), and run().
|
protected |
Definition at line 130 of file LADSPAPluginInstance.h.
Referenced by isBypassed(), and setBypassed().
|
protectedinherited |
Definition at line 148 of file RealTimePluginInstance.h.
Referenced by connectPorts(), DSSIPluginInstance::connectPorts(), getParameterDefault(), DSSIPluginInstance::getParameterDefault(), getParameterDescriptors(), DSSIPluginInstance::getParameterDescriptors(), getParameterDisplayHint(), DSSIPluginInstance::getParameterDisplayHint(), setParameterValue(), and DSSIPluginInstance::setParameterValue().
|
protectedinherited |
Definition at line 149 of file RealTimePluginInstance.h.
Referenced by DSSIPluginInstance::cleanup(), DSSIPluginInstance::deactivate(), DSSIPluginInstance::detachFromGroup(), getPluginIdentifier(), DSSIPluginInstance::getPluginIdentifier(), DSSIPluginInstance::initialiseGroupMembership(), and DSSIPluginInstance::runGrouped().
|
protectedinherited |
Definition at line 151 of file RealTimePluginInstance.h.
Referenced by DSSIPluginInstance::configure().
The documentation for this class was generated from the following files:
Generated by 1.8.11