Skip to content

Commit

Permalink
Increate size of man thread action queue
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Feb 8, 2024
1 parent 6dcae4d commit 7bd8638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/processors/chain/ChainIOProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ dsp::AudioBlock<float> ChainIOProcessor::processAudioInput (const AudioBuffer<fl
if (oversampling.updateOSFactor())
{
sampleRateChanged = true;
mainThreadAction->call ([this]
{ latencyChangedCallbackFunc ((int) oversampling.getLatencySamples()); },
true);
mainThreadAction.call ([this]
{ latencyChangedCallbackFunc ((int) oversampling.getLatencySamples()); },
true);
}

const auto useStereo = processChannelInputs (buffer);
Expand Down
2 changes: 1 addition & 1 deletion src/processors/chain/ChainIOProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ChainIOProcessor

bool isPrepared = false;

chowdsp::SharedDeferredAction mainThreadAction;
chowdsp::DeferredAction mainThreadAction { 256 };

JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChainIOProcessor)
};

0 comments on commit 7bd8638

Please sign in to comment.