From 15642132ba2fd773b5281f13b71793efc45293c0 Mon Sep 17 00:00:00 2001 From: Mike Oliphant Date: Tue, 21 Mar 2023 09:45:02 -0700 Subject: [PATCH] remove "rate" from constructor --- src/nam_lv2.cpp | 2 +- src/nam_plugin.cpp | 2 +- src/nam_plugin.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nam_lv2.cpp b/src/nam_lv2.cpp index dcf505c..6deda30 100644 --- a/src/nam_lv2.cpp +++ b/src/nam_lv2.cpp @@ -16,7 +16,7 @@ static LV2_Handle instantiate(const LV2_Descriptor*, double rate, const char*, c ) { try { - auto nam = std::make_unique(static_cast(rate)); + auto nam = std::make_unique(); if (nam->initialize(rate, features)) { diff --git a/src/nam_plugin.cpp b/src/nam_plugin.cpp index 9d58649..1ba47a7 100644 --- a/src/nam_plugin.cpp +++ b/src/nam_plugin.cpp @@ -5,7 +5,7 @@ #include "nam_plugin.h" namespace NAM { - Plugin::Plugin(float rate) + Plugin::Plugin() { } diff --git a/src/nam_plugin.h b/src/nam_plugin.h index 34fce07..450e72a 100644 --- a/src/nam_plugin.h +++ b/src/nam_plugin.h @@ -56,7 +56,7 @@ namespace NAM { std::unordered_map mNAMParams = {}; - Plugin(float rate); + Plugin(); ~Plugin() = default; bool initialize(double rate, const LV2_Feature* const* features) noexcept;