comparison plugin/RealTimePluginInstance.h @ 1429:48e9f538e6e9

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents a1cd5abcb38b
children c01cbe41aeb5
comparison
equal deleted inserted replaced
1428:87ae75da6527 1429:48e9f538e6e9
31 #include <vector> 31 #include <vector>
32 #include <string> 32 #include <string>
33 #include <map> 33 #include <map>
34 34
35 class RealTimePluginFactory; 35 class RealTimePluginFactory;
36 36
37 /** 37 /**
38 * RealTimePluginInstance is an interface that an audio process can 38 * RealTimePluginInstance is an interface that an audio process can
39 * use to refer to an instance of a plugin without needing to know 39 * use to refer to an instance of a plugin without needing to know
40 * what type of plugin it is. 40 * what type of plugin it is.
41 * 41 *
119 virtual int getParameterDisplayHint(int parameter) const = 0; 119 virtual int getParameterDisplayHint(int parameter) const = 0;
120 120
121 virtual std::string configure(std::string /* key */, std::string /* value */) { return std::string(); } 121 virtual std::string configure(std::string /* key */, std::string /* value */) { return std::string(); }
122 122
123 virtual void sendEvent(const RealTime & /* eventTime */, 123 virtual void sendEvent(const RealTime & /* eventTime */,
124 const void * /* event */) { } 124 const void * /* event */) { }
125 virtual void clearEvents() { } 125 virtual void clearEvents() { }
126 126
127 virtual bool isBypassed() const = 0; 127 virtual bool isBypassed() const = 0;
128 virtual void setBypassed(bool value) = 0; 128 virtual void setBypassed(bool value) = 0;
129 129
143 return m_configurationData; 143 return m_configurationData;
144 } 144 }
145 145
146 protected: 146 protected:
147 RealTimePluginInstance(RealTimePluginFactory *factory, QString identifier) : 147 RealTimePluginInstance(RealTimePluginFactory *factory, QString identifier) :
148 m_factory(factory), m_identifier(identifier) { } 148 m_factory(factory), m_identifier(identifier) { }
149 149
150 RealTimePluginFactory *m_factory; 150 RealTimePluginFactory *m_factory;
151 QString m_identifier; 151 QString m_identifier;
152 152
153 ConfigurationPairMap m_configurationData; 153 ConfigurationPairMap m_configurationData;