-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathlv2backend.h
More file actions
38 lines (31 loc) · 1.13 KB
/
lv2backend.h
File metadata and controls
38 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <lilv/lilv.h>
#include "effects/backends/effectsbackend.h"
#include "effects/backends/lv2/lv2manifest.h"
#include "effects/defs.h"
/// Refer to EffectsBackend for documentation
class LV2Backend : public EffectsBackend {
public:
LV2Backend();
virtual ~LV2Backend();
EffectBackendType getType() const {
return EffectBackendType::LV2;
};
const QList<QString> getEffectIds() const;
const QSet<QString> getDiscoveredPluginIds() const;
EffectManifestPointer getManifest(const QString& effectId) const;
const QList<EffectManifestPointer> getManifests() const;
LV2EffectManifestPointer getLV2Manifest(const QString& effectId) const;
std::unique_ptr<EffectProcessor> createProcessor(
const EffectManifestPointer pManifest) const;
bool canInstantiateEffect(const QString& effectId) const;
private:
void enumeratePlugins();
void initializeProperties();
LilvWorld* m_pWorld;
QHash<QString, LilvNode*> m_properties;
QHash<QString, LV2EffectManifestPointer> m_registeredEffects;
QString debugString() const {
return "LV2Backend";
}
};