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) };