mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-07 04:00:09 +02:00
plugin cleanup
This commit is contained in:
+10
-5
@@ -7,9 +7,14 @@
|
||||
#include <string_view>
|
||||
|
||||
// LV2
|
||||
#include <lv2/core/lv2.h>
|
||||
#include <lv2/atom/atom.h>
|
||||
#include <lv2/log/log.h>
|
||||
#include <lv2/log/logger.h>
|
||||
#include <lv2/urid/urid.h>
|
||||
#include <lv2/atom/forge.h>
|
||||
#include <lv2/patch/patch.h>
|
||||
#include <lv2/worker/worker.h>
|
||||
|
||||
#include "dsp.h"
|
||||
|
||||
@@ -29,6 +34,10 @@ namespace NAM {
|
||||
|
||||
Ports ports = {};
|
||||
|
||||
LV2_URID_Map* map;
|
||||
LV2_Log_Logger logger;
|
||||
LV2_Worker_Schedule* schedule;
|
||||
|
||||
std::unique_ptr<::DSP> namModel;
|
||||
|
||||
std::unordered_map<std::string, double> mNAMParams =
|
||||
@@ -37,15 +46,11 @@ namespace NAM {
|
||||
{"Output", 0.0}
|
||||
};
|
||||
|
||||
/*
|
||||
Member Functions
|
||||
*/
|
||||
|
||||
Plugin(float rate);
|
||||
~Plugin() = default;
|
||||
|
||||
void map_uris(LV2_URID_Map* map) noexcept;
|
||||
|
||||
bool initialize(double rate, const LV2_Feature* const* features) noexcept;
|
||||
void process(uint32_t n_samples) noexcept;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user