mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Windows: Added a more thread safe fix for the Studio One hang
This commit is contained in:
parent
d19c410713
commit
b7fbdd7009
1 changed files with 1 additions and 1 deletions
|
|
@ -1246,7 +1246,7 @@ void AudioProcessorGraph::prepareToPlay (double sampleRate, int estimatedSamples
|
|||
setRateAndBufferSizeDetails (sampleRate, estimatedSamplesPerBlock);
|
||||
clearRenderingSequence();
|
||||
|
||||
if (isNonRealtime())
|
||||
if (MessageManager::getInstance()->isThisTheMessageThread())
|
||||
handleAsyncUpdate();
|
||||
else
|
||||
triggerAsyncUpdate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue