Skip to content

Commit

Permalink
Clear nam volume controls when loading nam file
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Feb 25, 2024
1 parent 2128b2e commit 0fcd55e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trunk/src/gx_head/engine/gx_internal_plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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&) {
Expand Down

0 comments on commit 0fcd55e

Please sign in to comment.