diff --git a/src/nam_lv2.cpp b/src/nam_lv2.cpp index 265c6cb..8898adc 100644 --- a/src/nam_lv2.cpp +++ b/src/nam_lv2.cpp @@ -96,7 +96,7 @@ LV2_SYMBOL_EXPORT const LV2_Descriptor* lv2_descriptor(uint32_t index) { if (index == 0) { // Turn on fast tanh approximation - activations::Activation::enable_fast_tanh(); + nam::activations::Activation::enable_fast_tanh(); return &descriptor; } diff --git a/src/nam_plugin.cpp b/src/nam_plugin.cpp index 88d6d83..fef4138 100644 --- a/src/nam_plugin.cpp +++ b/src/nam_plugin.cpp @@ -88,7 +88,7 @@ namespace NAM { auto msg = static_cast(data); auto nam = static_cast(instance); - ::DSP* model = nullptr; + nam::DSP* model = nullptr; LV2SwitchModelMsg response = { kWorkTypeSwitch, {}, {} }; LV2_Worker_Status result = LV2_WORKER_SUCCESS; @@ -107,7 +107,7 @@ namespace NAM { { lv2_log_trace(&nam->logger, "Staging model change: `%s`\n", msg->path); - model = get_dsp(msg->path).release(); + model = nam::get_dsp(msg->path).release(); // Pre-run model to ensure all needed buffers are allocated in advance if (const int32_t numSamples = nam->maxBufferSize) diff --git a/src/nam_plugin.h b/src/nam_plugin.h index 7bbefdf..320b457 100644 --- a/src/nam_plugin.h +++ b/src/nam_plugin.h @@ -43,12 +43,12 @@ namespace NAM { struct LV2SwitchModelMsg { LV2WorkType type; char path[MAX_FILE_NAME]; - ::DSP* model; + nam::DSP* model; }; struct LV2FreeModelMsg { LV2WorkType type; - ::DSP* model; + nam::DSP* model; }; class Plugin { @@ -70,7 +70,7 @@ namespace NAM { LV2_Log_Logger logger = {}; LV2_Worker_Schedule* schedule = nullptr; - ::DSP* currentModel = nullptr; + nam::DSP* currentModel = nullptr; std::string currentModelPath; float prevDCInput = 0; float prevDCOutput = 0;