Mercurial > hg > svcore
comparison plugin/RealTimePluginInstance.h @ 1586:841b2a3e606d
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:38 +0000 |
parents | ad5f892c0c4d |
children | 5f8fbbde08ff |
comparison
equal
deleted
inserted
replaced
1585:9570ef94eaa3 | 1586:841b2a3e606d |
---|---|
16 This is a modified version of a source file from the | 16 This is a modified version of a source file from the |
17 Rosegarden MIDI and audio sequencer and notation editor. | 17 Rosegarden MIDI and audio sequencer and notation editor. |
18 This file copyright 2000-2006 Chris Cannam. | 18 This file copyright 2000-2006 Chris Cannam. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef _REALTIME_PLUGIN_INSTANCE_H_ | 21 #ifndef SV_REALTIME_PLUGIN_INSTANCE_H |
22 #define _REALTIME_PLUGIN_INSTANCE_H_ | 22 #define SV_REALTIME_PLUGIN_INSTANCE_H |
23 | 23 |
24 #include <vamp-hostsdk/PluginBase.h> | 24 #include <vamp-hostsdk/PluginBase.h> |
25 | 25 |
26 #include "base/RealTime.h" | 26 #include "base/RealTime.h" |
27 #include "base/AudioPlaySource.h" | 27 #include "base/AudioPlaySource.h" |
134 virtual void discardEvents() { } | 134 virtual void discardEvents() { } |
135 virtual void setIdealChannelCount(int channels) = 0; // must also silence(); may also re-instantiate | 135 virtual void setIdealChannelCount(int channels) = 0; // must also silence(); may also re-instantiate |
136 | 136 |
137 void setFactory(RealTimePluginFactory *f) { m_factory = f; } // ew | 137 void setFactory(RealTimePluginFactory *f) { m_factory = f; } // ew |
138 | 138 |
139 virtual std::string getType() const { return "Real-Time Plugin"; } | 139 std::string getType() const override { return "Real-Time Plugin"; } |
140 | 140 |
141 typedef std::map<std::string, std::string> ConfigurationPairMap; | 141 typedef std::map<std::string, std::string> ConfigurationPairMap; |
142 virtual ConfigurationPairMap getConfigurePairs() { | 142 virtual ConfigurationPairMap getConfigurePairs() { |
143 return m_configurationData; | 143 return m_configurationData; |
144 } | 144 } |