Actually use the ports from the generated PEG

This commit is contained in:
Aleks Rutins 2023-04-15 20:17:02 -04:00
parent f26a5265f6
commit f1b054ec65
2 changed files with 11 additions and 34 deletions

View file

@ -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);
};
}