From 46a73d83fa198522a5265f8c47fe9538c2d5b8db Mon Sep 17 00:00:00 2001 From: Mike Oliphant Date: Fri, 18 Aug 2023 13:20:27 -0700 Subject: [PATCH] Initialize model pre-run buffer to zero. Update to latest devel NAM Core with pre-warm instead of anti-pop. --- deps/NeuralAmpModelerCore | 2 +- src/nam_plugin.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/NeuralAmpModelerCore b/deps/NeuralAmpModelerCore index de9cf22..2728ec7 160000 --- a/deps/NeuralAmpModelerCore +++ b/deps/NeuralAmpModelerCore @@ -1 +1 @@ -Subproject commit de9cf22b0df6dada8f33f35ff98613933b411e96 +Subproject commit 2728ec7b6cafae6e974c6e610c767d9148a9c9ea diff --git a/src/nam_plugin.cpp b/src/nam_plugin.cpp index 5ab5da1..1c6143b 100644 --- a/src/nam_plugin.cpp +++ b/src/nam_plugin.cpp @@ -120,6 +120,7 @@ namespace NAM { if (const int32_t numSamples = nam->maxBufferSize) { float* buffer = new float[numSamples]; + memset(buffer, 0, numSamples * sizeof(float)); std::unordered_map params = {}; model->process(&buffer, &buffer, 1, numSamples, 1.0, 1.0, params);