Use the C++ version of the LV2 libraries
This commit is contained in:
parent
391f9e9a0b
commit
c226177453
5 changed files with 23 additions and 54 deletions
12
plugin.hh
12
plugin.hh
|
@ -1,19 +1,21 @@
|
|||
#pragma once
|
||||
#include <lv2plugin.hpp>
|
||||
#include <stdint.h>
|
||||
|
||||
using namespace LV2;
|
||||
|
||||
namespace Dynamite {
|
||||
enum PluginPort {
|
||||
IN, OUT, DRIVE
|
||||
IN, OUT, DRIVE, THRESHOLD
|
||||
};
|
||||
|
||||
class Plugin {
|
||||
class Drive : public Plugin<Drive> {
|
||||
const float *drive;
|
||||
const float *input;
|
||||
float *output;
|
||||
public:
|
||||
void connect_port(PluginPort port, void* data);
|
||||
void activate();
|
||||
Drive(double rate) : Plugin<Drive>(1) {}
|
||||
void connect_port(uint32_t port, void* data);
|
||||
void run(uint32_t n_samples);
|
||||
void deactivate();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue