comparison plugin/LADSPAPluginFactory.h @ 1527:710e6250a401 zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 13:51:14 +0100
parents 5d7057af0c68
children c01cbe41aeb5
comparison
equal deleted inserted replaced
1324:d4a28d1479a8 1527:710e6250a401
45 virtual void enumeratePlugins(std::vector<QString> &list); 45 virtual void enumeratePlugins(std::vector<QString> &list);
46 46
47 virtual const RealTimePluginDescriptor *getPluginDescriptor(QString identifier) const; 47 virtual const RealTimePluginDescriptor *getPluginDescriptor(QString identifier) const;
48 48
49 virtual RealTimePluginInstance *instantiatePlugin(QString identifier, 49 virtual RealTimePluginInstance *instantiatePlugin(QString identifier,
50 int clientId, 50 int clientId,
51 int position, 51 int position,
52 sv_samplerate_t sampleRate, 52 sv_samplerate_t sampleRate,
53 int blockSize, 53 int blockSize,
54 int channels); 54 int channels);
55 55
56 virtual QString getPluginCategory(QString identifier); 56 virtual QString getPluginCategory(QString identifier);
57 57
58 virtual QString getPluginLibraryPath(QString identifier);
59
58 float getPortMinimum(const LADSPA_Descriptor *, int port); 60 float getPortMinimum(const LADSPA_Descriptor *, int port);
59 float getPortMaximum(const LADSPA_Descriptor *, int port); 61 float getPortMaximum(const LADSPA_Descriptor *, int port);
60 float getPortDefault(const LADSPA_Descriptor *, int port); 62 float getPortDefault(const LADSPA_Descriptor *, int port);
61 float getPortQuantization(const LADSPA_Descriptor *, int port); 63 float getPortQuantization(const LADSPA_Descriptor *, int port);
62 int getPortDisplayHint(const LADSPA_Descriptor *, int port); 64 int getPortDisplayHint(const LADSPA_Descriptor *, int port);
65
66 static std::vector<QString> getPluginPath();
63 67
64 protected: 68 protected:
65 LADSPAPluginFactory(); 69 LADSPAPluginFactory();
66 friend class RealTimePluginFactory; 70 friend class RealTimePluginFactory;
67 71
68 virtual PluginScan::PluginType getPluginType() const { 72 virtual PluginScan::PluginType getPluginType() const {
69 return PluginScan::LADSPAPlugin; 73 return PluginScan::LADSPAPlugin;
70 } 74 }
71
72 virtual std::vector<QString> getPluginPath();
73 75
74 virtual std::vector<QString> getLRDFPath(QString &baseUri); 76 virtual std::vector<QString> getLRDFPath(QString &baseUri);
75 77
76 virtual void discoverPluginsFrom(QString soName); 78 virtual void discoverPluginsFrom(QString soName);
77 virtual void generateTaxonomy(QString uri, QString base); 79 virtual void generateTaxonomy(QString uri, QString base);
84 void loadLibrary(QString soName); 86 void loadLibrary(QString soName);
85 void unloadLibrary(QString soName); 87 void unloadLibrary(QString soName);
86 void unloadUnusedLibraries(); 88 void unloadUnusedLibraries();
87 89
88 std::vector<QString> m_identifiers; 90 std::vector<QString> m_identifiers;
91 std::map<QString, QString> m_libraries; // identifier -> full file path
89 std::map<QString, RealTimePluginDescriptor *> m_rtDescriptors; 92 std::map<QString, RealTimePluginDescriptor *> m_rtDescriptors;
90 93
91 std::map<QString, QString> m_taxonomy; 94 std::map<QString, QString> m_taxonomy;
92 std::map<unsigned long, QString> m_lrdfTaxonomy; 95 std::map<unsigned long, QString> m_lrdfTaxonomy;
93 std::map<unsigned long, std::map<int, float> > m_portDefaults; 96 std::map<unsigned long, std::map<int, float> > m_portDefaults;