mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Fixed a potential race in AudioProcessorGraph
This commit is contained in:
parent
41e7251519
commit
18bdd52607
1 changed files with 4 additions and 0 deletions
|
|
@ -893,6 +893,8 @@ void AudioProcessorGraph::topologyChanged()
|
|||
|
||||
void AudioProcessorGraph::clear()
|
||||
{
|
||||
const ScopedLock sl (getCallbackLock());
|
||||
|
||||
if (nodes.isEmpty())
|
||||
return;
|
||||
|
||||
|
|
@ -1253,6 +1255,8 @@ bool AudioProcessorGraph::supportsDoublePrecisionProcessing() const
|
|||
|
||||
void AudioProcessorGraph::releaseResources()
|
||||
{
|
||||
const ScopedLock sl (getCallbackLock());
|
||||
|
||||
isPrepared = 0;
|
||||
|
||||
for (auto* n : nodes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue