From 7bd86384ee2db06dd62ab0a0b6efffe887f945d2 Mon Sep 17 00:00:00 2001 From: jatin Date: Wed, 7 Feb 2024 23:36:04 -0800 Subject: [PATCH] Increate size of man thread action queue --- src/processors/chain/ChainIOProcessor.cpp | 6 +++--- src/processors/chain/ChainIOProcessor.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/processors/chain/ChainIOProcessor.cpp b/src/processors/chain/ChainIOProcessor.cpp index ca9c0b07..ffe3dcfe 100644 --- a/src/processors/chain/ChainIOProcessor.cpp +++ b/src/processors/chain/ChainIOProcessor.cpp @@ -123,9 +123,9 @@ dsp::AudioBlock ChainIOProcessor::processAudioInput (const AudioBuffercall ([this] - { latencyChangedCallbackFunc ((int) oversampling.getLatencySamples()); }, - true); + mainThreadAction.call ([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 16e88fc4..b5573e3f 100644 --- a/src/processors/chain/ChainIOProcessor.h +++ b/src/processors/chain/ChainIOProcessor.h @@ -46,7 +46,7 @@ class ChainIOProcessor bool isPrepared = false; - chowdsp::SharedDeferredAction mainThreadAction; + chowdsp::DeferredAction mainThreadAction { 256 }; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChainIOProcessor) };