mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-08 12:30:12 +02:00
Using atom:Path to get model to load from DAW
This commit is contained in:
+31
-1
@@ -9,6 +9,7 @@
|
||||
#include <lv2/urid/urid.h>
|
||||
#include <lv2/log/log.h>
|
||||
#include <lv2/log/logger.h>
|
||||
#include <lv2/worker/worker.h>
|
||||
|
||||
#include "nam_plugin.hpp"
|
||||
|
||||
@@ -64,7 +65,36 @@ static void cleanup(LV2_Handle instance) {
|
||||
delete static_cast<NAM::Plugin*>(instance);
|
||||
}
|
||||
|
||||
static const void* extension_data(const char*) { return nullptr; }
|
||||
static LV2_Worker_Status
|
||||
work(LV2_Handle instance,
|
||||
LV2_Worker_Respond_Function respond,
|
||||
LV2_Worker_Respond_Handle handle,
|
||||
uint32_t size,
|
||||
const void* data)
|
||||
{
|
||||
|
||||
return LV2_WORKER_SUCCESS;
|
||||
}
|
||||
|
||||
static LV2_Worker_Status
|
||||
work_response(LV2_Handle instance,
|
||||
uint32_t size,
|
||||
const void* data)
|
||||
{
|
||||
return LV2_WORKER_SUCCESS;
|
||||
}
|
||||
|
||||
static const void*
|
||||
extension_data(const char* uri)
|
||||
{
|
||||
static const LV2_Worker_Interface worker = { work, work_response, NULL };
|
||||
|
||||
if (!strcmp(uri, LV2_WORKER__interface)) {
|
||||
return &worker;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static const LV2_Descriptor descriptor = {
|
||||
"http://github.com/mikeoliphant/neural-amp-modeler-lv2",
|
||||
|
||||
Reference in New Issue
Block a user