Actually use the ports from the generated PEG
This commit is contained in:
parent
f26a5265f6
commit
f1b054ec65
2 changed files with 11 additions and 34 deletions
10
plugin.hh
10
plugin.hh
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include <lv2plugin.hpp>
|
||||
#include <stdint.h>
|
||||
#include "dynamite.peg"
|
||||
|
||||
using namespace LV2;
|
||||
|
||||
|
@ -10,15 +11,8 @@ namespace Dynamite {
|
|||
};
|
||||
|
||||
class Drive : public Plugin<Drive> {
|
||||
const float *drive;
|
||||
const float *threshold;
|
||||
const float *gain;
|
||||
const float *mix;
|
||||
const float *input;
|
||||
float *output;
|
||||
public:
|
||||
Drive(double rate) : Plugin<Drive>(1) {}
|
||||
void connect_port(uint32_t port, void* data);
|
||||
Drive(double rate) : Plugin<Drive>(p_n_ports) {}
|
||||
void run(uint32_t n_samples);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue