From 07981a42e822af2ed1ea0ae4493c09f25a56cd6c Mon Sep 17 00:00:00 2001 From: Gergo Koteles Date: Wed, 9 Jul 2025 18:22:58 +0200 Subject: [PATCH] reverb: do not use the reverb mixer if reverb is disabled --- src/minidexed.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 51e6444..0e1c283 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -1409,7 +1409,6 @@ void CMiniDexed::ProcessSound (void) for (uint8_t i = 0; i < m_nToneGenerators; i++) { tg_mixer->doAddMix(i,m_OutputLevel[i]); - reverb_send_mixer->doAddMix(i,m_OutputLevel[i]); } // END TG mixing @@ -1425,6 +1424,11 @@ void CMiniDexed::ProcessSound (void) { float32_t ReverbBuffer[2][nFrames]; float32_t ReverbSendBuffer[2][nFrames]; + + for (uint8_t i = 0; i < m_nToneGenerators; i++) + { + reverb_send_mixer->doAddMix(i,m_OutputLevel[i]); + } arm_fill_f32(0.0f, ReverbBuffer[indexL], nFrames); arm_fill_f32(0.0f, ReverbBuffer[indexR], nFrames);