From 0fcd55e7b9ec9d0128ed274fc2398c9ce891b7c0 Mon Sep 17 00:00:00 2001 From: brummer10 Date: Sun, 25 Feb 2024 08:45:25 +0100 Subject: [PATCH] Clear nam volume controls when loading nam file --- trunk/src/gx_head/engine/gx_internal_plugins.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trunk/src/gx_head/engine/gx_internal_plugins.cpp b/trunk/src/gx_head/engine/gx_internal_plugins.cpp index 32c9c7197..d852836ba 100644 --- a/trunk/src/gx_head/engine/gx_internal_plugins.cpp +++ b/trunk/src/gx_head/engine/gx_internal_plugins.cpp @@ -1929,12 +1929,13 @@ void NeuralAmp::compute_static(int count, float *input0, float *output0, PluginD // non rt callback void NeuralAmp::load_nam_file() { if (!load_file.empty() && is_inited) { - sync(); gx_system::atomic_set(&ready, 0); + sync(); delete model; model = nullptr; need_resample = 0; - int32_t warmUpSize = 4069; + clear_state_f(); + int32_t warmUpSize = 4096; try { model = nam::get_dsp(std::string(load_file)).release(); } catch (const std::exception&) {