summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2025-05-06 17:44:24 +0200
committer Olivier Galibert <galibert@pobox.com>2025-05-06 17:44:32 +0200
commitc5aa2a22f7792fa1d7f8049a4dd3ff7ed1e5fd1c (patch)
tree32273d128e8eb468267705a4e52d596a1abd0507
parentc3b102fe1c92a71d35e274ee0628f265d8f5aa15 (diff)
effects: Recompute filters after loading the configuration
-rw-r--r--src/emu/audio_effects/eq.cpp3
-rw-r--r--src/emu/audio_effects/filter.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/audio_effects/eq.cpp b/src/emu/audio_effects/eq.cpp
index 799b2f8c9b5..c2db2680e5b 100644
--- a/src/emu/audio_effects/eq.cpp
+++ b/src/emu/audio_effects/eq.cpp
@@ -120,6 +120,9 @@ void audio_effect_eq::config_load(util::xml::data_node const *ef_node)
} else
reset_db(band);
}
+
+ for(u32 i = 0; i != BANDS; i++)
+ build_filter(i);
}
void audio_effect_eq::config_save(util::xml::data_node *ef_node) const
diff --git a/src/emu/audio_effects/filter.cpp b/src/emu/audio_effects/filter.cpp
index 70cf7ddc967..947f4b7af58 100644
--- a/src/emu/audio_effects/filter.cpp
+++ b/src/emu/audio_effects/filter.cpp
@@ -113,6 +113,9 @@ void audio_effect_filter::config_load(util::xml::data_node const *ef_node)
m_isset_qh = true;
} else
reset_qh();
+
+ build_highpass();
+ build_lowpass();
}
void audio_effect_filter::config_save(util::xml::data_node *ef_node) const