From 29aaf69de914da7a3d2a0e6a664933cd398b99b8 Mon Sep 17 00:00:00 2001 From: jatin Date: Fri, 18 Nov 2022 19:30:25 -0800 Subject: [PATCH] Attempted fix for #234 --- src/processors/chain/ChainIOProcessor.cpp | 5 ++++- src/processors/chain/ChainIOProcessor.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/processors/chain/ChainIOProcessor.cpp b/src/processors/chain/ChainIOProcessor.cpp index 01c0b84c..7ec845cb 100644 --- a/src/processors/chain/ChainIOProcessor.cpp +++ b/src/processors/chain/ChainIOProcessor.cpp @@ -112,7 +112,10 @@ dsp::AudioBlock ChainIOProcessor::processAudioInput (const AudioBuffercall ([this] + { + latencyChangedCallbackFunc ((int) oversampling.getLatencySamples()); + }, true); } const auto useStereo = processChannelInputs (buffer); diff --git a/src/processors/chain/ChainIOProcessor.h b/src/processors/chain/ChainIOProcessor.h index 91feaaeb..46616c71 100644 --- a/src/processors/chain/ChainIOProcessor.h +++ b/src/processors/chain/ChainIOProcessor.h @@ -45,5 +45,7 @@ class ChainIOProcessor bool isPrepared = false; + chowdsp::SharedDeferredAction mainThreadAction; + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChainIOProcessor) };