From 6d6872bb3f107a7ef71ac1c98d36a10229538fa6 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sun, 9 Feb 2020 18:19:03 +0100 Subject: [PATCH] Add the EQPool in resources --- src/sfizz/Resources.h | 2 ++ src/sfizz/Synth.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/sfizz/Resources.h b/src/sfizz/Resources.h index 8cf7efc1..616e2cac 100644 --- a/src/sfizz/Resources.h +++ b/src/sfizz/Resources.h @@ -7,6 +7,7 @@ #pragma once #include "FilePool.h" #include "FilterPool.h" +#include "EQPool.h" #include "Logger.h" namespace sfz @@ -17,5 +18,6 @@ struct Resources Logger logger; FilePool filePool { logger }; FilterPool filterPool { midiState }; + EQPool eqPool { midiState }; }; } diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index c61bb0c9..3efdb6cf 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -403,6 +403,7 @@ void sfz::Synth::setSampleRate(float sampleRate) noexcept voice->setSampleRate(sampleRate); resources.filterPool.setSampleRate(sampleRate); + resources.eqPool.setSampleRate(sampleRate); } void sfz::Synth::renderBlock(AudioSpan buffer) noexcept