1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Windows: Restricted the thread safe Studio One hang fix to only non-realtime cases

This commit is contained in:
Tom Poole 2018-12-07 10:44:20 +00:00
parent b7fbdd7009
commit 6b7a870f0b

View file

@ -1246,7 +1246,7 @@ void AudioProcessorGraph::prepareToPlay (double sampleRate, int estimatedSamples
setRateAndBufferSizeDetails (sampleRate, estimatedSamplesPerBlock);
clearRenderingSequence();
if (MessageManager::getInstance()->isThisTheMessageThread())
if (isNonRealtime() && MessageManager::getInstance()->isThisTheMessageThread())
handleAsyncUpdate();
else
triggerAsyncUpdate();