From 3e0b59f27176841ce54486879496f391ca0ab2bb Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 30 Aug 2023 18:55:34 -0400 Subject: [PATCH] Allow Reverb1 Room Size to Modulate (#16) It always cou,d just it cleared a buffer when you did improperly. So now it doesn't clear that buffer any more. --- include/sst/effects/Reverb1.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/sst/effects/Reverb1.h b/include/sst/effects/Reverb1.h index f7c0ae3..9f21f38 100644 --- a/include/sst/effects/Reverb1.h +++ b/include/sst/effects/Reverb1.h @@ -314,9 +314,10 @@ inline void Reverb1::processBlock(float *__restrict dataL, float *__re template inline void Reverb1::loadpreset(int id) { - shape = id; + if (shape != id) + clear_buffers(); - clear_buffers(); + shape = id; switch (id) {