Browse Source

Fixed a compile problem where Atomic<bool> isn't available on some architectures

tags/2021-05-28
jules 7 years ago
parent
commit
e55e87ee0e
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp
  2. +1
    -1
      modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h

+ 3
- 3
modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp View File

@@ -851,7 +851,7 @@ void AudioProcessorGraph::topologyChanged()
{ {
sendChangeMessage(); sendChangeMessage();
if (isPrepared.get())
if (isPrepared.get() != 0)
triggerAsyncUpdate(); triggerAsyncUpdate();
} }
@@ -1197,7 +1197,7 @@ void AudioProcessorGraph::buildRenderingSequence()
void AudioProcessorGraph::handleAsyncUpdate() void AudioProcessorGraph::handleAsyncUpdate()
{ {
buildRenderingSequence(); buildRenderingSequence();
isPrepared = true;
isPrepared = 1;
} }
//============================================================================== //==============================================================================
@@ -1220,7 +1220,7 @@ bool AudioProcessorGraph::supportsDoublePrecisionProcessing() const
void AudioProcessorGraph::releaseResources() void AudioProcessorGraph::releaseResources()
{ {
isPrepared = false;
isPrepared = 0;
for (auto* n : nodes) for (auto* n : nodes)
n->unprepare(); n->unprepare();


+ 1
- 1
modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h View File

@@ -376,7 +376,7 @@ private:
friend class AudioGraphIOProcessor; friend class AudioGraphIOProcessor;
Atomic<bool> isPrepared { false };
Atomic<int> isPrepared { 0 };
void topologyChanged(); void topologyChanged();
void handleAsyncUpdate() override; void handleAsyncUpdate() override;


Loading…
Cancel
Save