Mercurial > hg > svcore
diff plugin/LADSPAPluginInstance.h @ 51:c2913298cf94
* Make RealTimePluginInstances also provide the PluginInstance interface
author | Chris Cannam |
---|---|
date | Mon, 20 Mar 2006 13:48:58 +0000 |
parents | 39ae3dee27b9 |
children | d397ea0a79f5 |
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.h Mon Mar 20 12:04:06 2006 +0000 +++ b/plugin/LADSPAPluginInstance.h Mon Mar 20 13:48:58 2006 +0000 @@ -38,12 +38,22 @@ virtual QString getIdentifier() const { return m_identifier; } int getPosition() const { return m_position; } + virtual std::string getName() const; + virtual std::string getDescription() const; + virtual std::string getMaker() const; + virtual int getPluginVersion() const; + virtual std::string getCopyright() const; + virtual void run(const RealTime &rt); virtual unsigned int getParameterCount() const; virtual void setParameterValue(unsigned int parameter, float value); virtual float getParameterValue(unsigned int parameter) const; virtual float getParameterDefault(unsigned int parameter) const; + + virtual ParameterList getParameterDescriptors() const; + virtual float getParameter(std::string) const; + virtual void setParameter(std::string, float); virtual size_t getBufferSize() const { return m_blockSize; } virtual size_t getAudioInputCount() const { return m_instanceCount * m_audioPortsIn.size(); } @@ -74,18 +84,6 @@ int idealChannelCount, const LADSPA_Descriptor* descriptor); - // Constructor that uses shared buffers - // - LADSPAPluginInstance(RealTimePluginFactory *factory, - int client, - QString identifier, - int position, - unsigned long sampleRate, - size_t blockSize, - sample_t **inputBuffers, - sample_t **outputBuffers, - const LADSPA_Descriptor* descriptor); - void init(int idealChannelCount = 0); void instantiate(unsigned long sampleRate); void cleanup();