mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Fixed a compile problem where Atomic<bool> isn't available on some architectures
This commit is contained in:
parent
8d578fae55
commit
e55e87ee0e
2 changed files with 4 additions and 4 deletions
|
|
@ -851,7 +851,7 @@ void AudioProcessorGraph::topologyChanged()
|
|||
{
|
||||
sendChangeMessage();
|
||||
|
||||
if (isPrepared.get())
|
||||
if (isPrepared.get() != 0)
|
||||
triggerAsyncUpdate();
|
||||
}
|
||||
|
||||
|
|
@ -1197,7 +1197,7 @@ void AudioProcessorGraph::buildRenderingSequence()
|
|||
void AudioProcessorGraph::handleAsyncUpdate()
|
||||
{
|
||||
buildRenderingSequence();
|
||||
isPrepared = true;
|
||||
isPrepared = 1;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -1220,7 +1220,7 @@ bool AudioProcessorGraph::supportsDoublePrecisionProcessing() const
|
|||
|
||||
void AudioProcessorGraph::releaseResources()
|
||||
{
|
||||
isPrepared = false;
|
||||
isPrepared = 0;
|
||||
|
||||
for (auto* n : nodes)
|
||||
n->unprepare();
|
||||
|
|
|
|||
|
|
@ -376,7 +376,7 @@ private:
|
|||
|
||||
friend class AudioGraphIOProcessor;
|
||||
|
||||
Atomic<bool> isPrepared { false };
|
||||
Atomic<int> isPrepared { 0 };
|
||||
|
||||
void topologyChanged();
|
||||
void handleAsyncUpdate() override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue