mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-10 04:30:14 +02:00
remove "rate" from constructor
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ static LV2_Handle instantiate(const LV2_Descriptor*, double rate, const char*, c
|
|||||||
) {
|
) {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
auto nam = std::make_unique<NAM::Plugin>(static_cast<float>(rate));
|
auto nam = std::make_unique<NAM::Plugin>();
|
||||||
|
|
||||||
if (nam->initialize(rate, features))
|
if (nam->initialize(rate, features))
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
#include "nam_plugin.h"
|
#include "nam_plugin.h"
|
||||||
|
|
||||||
namespace NAM {
|
namespace NAM {
|
||||||
Plugin::Plugin(float rate)
|
Plugin::Plugin()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ namespace NAM {
|
|||||||
std::unordered_map<std::string, double> mNAMParams = {};
|
std::unordered_map<std::string, double> mNAMParams = {};
|
||||||
|
|
||||||
|
|
||||||
Plugin(float rate);
|
Plugin();
|
||||||
~Plugin() = default;
|
~Plugin() = default;
|
||||||
|
|
||||||
bool initialize(double rate, const LV2_Feature* const* features) noexcept;
|
bool initialize(double rate, const LV2_Feature* const* features) noexcept;
|
||||||
|
|||||||
Reference in New Issue
Block a user