plugin cleanup

This commit is contained in:
Mike Oliphant
2023-03-13 09:52:15 -07:00
parent 079bd4dbfd
commit 99c709d70d
3 changed files with 60 additions and 40 deletions
+10 -5
View File
@@ -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: