Skip to content

Commit 61bbce1

Browse files
committed
Add "nam" namespace
1 parent 1dc54bc commit 61bbce1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/nam_lv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ LV2_SYMBOL_EXPORT const LV2_Descriptor* lv2_descriptor(uint32_t index)
9696
{
9797
if (index == 0) {
9898
// Turn on fast tanh approximation
99-
activations::Activation::enable_fast_tanh();
99+
nam::activations::Activation::enable_fast_tanh();
100100

101101
return &descriptor;
102102
}

src/nam_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ namespace NAM {
8888
auto msg = static_cast<const LV2LoadModelMsg*>(data);
8989
auto nam = static_cast<NAM::Plugin*>(instance);
9090

91-
::DSP* model = nullptr;
91+
nam::DSP* model = nullptr;
9292
LV2SwitchModelMsg response = { kWorkTypeSwitch, {}, {} };
9393
LV2_Worker_Status result = LV2_WORKER_SUCCESS;
9494

@@ -107,7 +107,7 @@ namespace NAM {
107107
{
108108
lv2_log_trace(&nam->logger, "Staging model change: `%s`\n", msg->path);
109109

110-
model = get_dsp(msg->path).release();
110+
model = nam::get_dsp(msg->path).release();
111111

112112
// Pre-run model to ensure all needed buffers are allocated in advance
113113
if (const int32_t numSamples = nam->maxBufferSize)

src/nam_plugin.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ namespace NAM {
4343
struct LV2SwitchModelMsg {
4444
LV2WorkType type;
4545
char path[MAX_FILE_NAME];
46-
::DSP* model;
46+
nam::DSP* model;
4747
};
4848

4949
struct LV2FreeModelMsg {
5050
LV2WorkType type;
51-
::DSP* model;
51+
nam::DSP* model;
5252
};
5353

5454
class Plugin {
@@ -70,7 +70,7 @@ namespace NAM {
7070
LV2_Log_Logger logger = {};
7171
LV2_Worker_Schedule* schedule = nullptr;
7272

73-
::DSP* currentModel = nullptr;
73+
nam::DSP* currentModel = nullptr;
7474
std::string currentModelPath;
7575
float prevDCInput = 0;
7676
float prevDCOutput = 0;

0 commit comments

Comments
 (0)