comparison 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
comparison
equal deleted inserted replaced
50:080ad875395a 51:c2913298cf94
36 36
37 int getClientId() const { return m_client; } 37 int getClientId() const { return m_client; }
38 virtual QString getIdentifier() const { return m_identifier; } 38 virtual QString getIdentifier() const { return m_identifier; }
39 int getPosition() const { return m_position; } 39 int getPosition() const { return m_position; }
40 40
41 virtual std::string getName() const;
42 virtual std::string getDescription() const;
43 virtual std::string getMaker() const;
44 virtual int getPluginVersion() const;
45 virtual std::string getCopyright() const;
46
41 virtual void run(const RealTime &rt); 47 virtual void run(const RealTime &rt);
42 48
43 virtual unsigned int getParameterCount() const; 49 virtual unsigned int getParameterCount() const;
44 virtual void setParameterValue(unsigned int parameter, float value); 50 virtual void setParameterValue(unsigned int parameter, float value);
45 virtual float getParameterValue(unsigned int parameter) const; 51 virtual float getParameterValue(unsigned int parameter) const;
46 virtual float getParameterDefault(unsigned int parameter) const; 52 virtual float getParameterDefault(unsigned int parameter) const;
53
54 virtual ParameterList getParameterDescriptors() const;
55 virtual float getParameter(std::string) const;
56 virtual void setParameter(std::string, float);
47 57
48 virtual size_t getBufferSize() const { return m_blockSize; } 58 virtual size_t getBufferSize() const { return m_blockSize; }
49 virtual size_t getAudioInputCount() const { return m_instanceCount * m_audioPortsIn.size(); } 59 virtual size_t getAudioInputCount() const { return m_instanceCount * m_audioPortsIn.size(); }
50 virtual size_t getAudioOutputCount() const { return m_instanceCount * m_audioPortsOut.size(); } 60 virtual size_t getAudioOutputCount() const { return m_instanceCount * m_audioPortsOut.size(); }
51 virtual sample_t **getAudioInputBuffers() { return m_inputBuffers; } 61 virtual sample_t **getAudioInputBuffers() { return m_inputBuffers; }
70 QString identifier, 80 QString identifier,
71 int position, 81 int position,
72 unsigned long sampleRate, 82 unsigned long sampleRate,
73 size_t blockSize, 83 size_t blockSize,
74 int idealChannelCount, 84 int idealChannelCount,
75 const LADSPA_Descriptor* descriptor);
76
77 // Constructor that uses shared buffers
78 //
79 LADSPAPluginInstance(RealTimePluginFactory *factory,
80 int client,
81 QString identifier,
82 int position,
83 unsigned long sampleRate,
84 size_t blockSize,
85 sample_t **inputBuffers,
86 sample_t **outputBuffers,
87 const LADSPA_Descriptor* descriptor); 85 const LADSPA_Descriptor* descriptor);
88 86
89 void init(int idealChannelCount = 0); 87 void init(int idealChannelCount = 0);
90 void instantiate(unsigned long sampleRate); 88 void instantiate(unsigned long sampleRate);
91 void cleanup(); 89 void cleanup();