comparison plugin/LADSPAPluginInstance.h @ 1039:b14064bd1f97 cxx11

This code now compiles. Main problem: sample rate types
author Chris Cannam
date Tue, 03 Mar 2015 17:09:19 +0000
parents 9b35a1731c3d
children a1cd5abcb38b
comparison
equal deleted inserted replaced
1038:cc27f35aa75c 1039:b14064bd1f97
25 #include <set> 25 #include <set>
26 #include <QString> 26 #include <QString>
27 27
28 #include "api/ladspa.h" 28 #include "api/ladspa.h"
29 #include "RealTimePluginInstance.h" 29 #include "RealTimePluginInstance.h"
30 #include "base/BaseTypes.h"
30 31
31 // LADSPA plugin instance. LADSPA is a variable block size API, but 32 // LADSPA plugin instance. LADSPA is a variable block size API, but
32 // for one reason and another it's more convenient to use a fixed 33 // for one reason and another it's more convenient to use a fixed
33 // block size in this wrapper. 34 // block size in this wrapper.
34 // 35 //
50 virtual int getPluginVersion() const; 51 virtual int getPluginVersion() const;
51 virtual std::string getCopyright() const; 52 virtual std::string getCopyright() const;
52 53
53 virtual void run(const Vamp::RealTime &rt, size_t count = 0); 54 virtual void run(const Vamp::RealTime &rt, size_t count = 0);
54 55
55 virtual unsigned int getParameterCount() const; 56 virtual int getParameterCount() const;
56 virtual void setParameterValue(unsigned int parameter, float value); 57 virtual void setParameterValue(int parameter, float value);
57 virtual float getParameterValue(unsigned int parameter) const; 58 virtual float getParameterValue(int parameter) const;
58 virtual float getParameterDefault(unsigned int parameter) const; 59 virtual float getParameterDefault(int parameter) const;
59 virtual int getParameterDisplayHint(unsigned int parameter) const; 60 virtual int getParameterDisplayHint(int parameter) const;
60 61
61 virtual ParameterList getParameterDescriptors() const; 62 virtual ParameterList getParameterDescriptors() const;
62 virtual float getParameter(std::string) const; 63 virtual float getParameter(std::string) const;
63 virtual void setParameter(std::string, float); 64 virtual void setParameter(std::string, float);
64 65
110 int m_position; 111 int m_position;
111 std::vector<LADSPA_Handle> m_instanceHandles; 112 std::vector<LADSPA_Handle> m_instanceHandles;
112 size_t m_instanceCount; 113 size_t m_instanceCount;
113 const LADSPA_Descriptor *m_descriptor; 114 const LADSPA_Descriptor *m_descriptor;
114 115
115 std::vector<std::pair<unsigned long, LADSPA_Data*> > m_controlPortsIn; 116 std::vector<std::pair<int, LADSPA_Data*> > m_controlPortsIn;
116 std::vector<std::pair<unsigned long, LADSPA_Data*> > m_controlPortsOut; 117 std::vector<std::pair<int, LADSPA_Data*> > m_controlPortsOut;
117 118
118 std::vector<int> m_audioPortsIn; 119 std::vector<int> m_audioPortsIn;
119 std::vector<int> m_audioPortsOut; 120 std::vector<int> m_audioPortsOut;
120 121
121 size_t m_blockSize; 122 size_t m_blockSize;