diff --git a/Source/Standalone/InternalSynth.h b/Source/Standalone/InternalSynth.h index 137098d9c..e83ddccec 100644 --- a/Source/Standalone/InternalSynth.h +++ b/Source/Standalone/InternalSynth.h @@ -40,12 +40,12 @@ class InternalSynth final : public Thread { FluidSynth* synth = nullptr; FluidSettings* settings = nullptr; - std::atomic ready = false; + AtomicValue ready = false; std::mutex unprepareLock; - std::atomic lastSampleRate = 0; - std::atomic lastBlockSize = 0; - std::atomic lastNumChannels = 0; + AtomicValue lastSampleRate = 0; + AtomicValue lastBlockSize = 0; + AtomicValue lastNumChannels = 0; AudioBuffer internalBuffer; }; diff --git a/Source/Utility/MidiDeviceManager.h b/Source/Utility/MidiDeviceManager.h index a58c53219..cda027f5a 100644 --- a/Source/Utility/MidiDeviceManager.h +++ b/Source/Utility/MidiDeviceManager.h @@ -428,16 +428,16 @@ class MidiDeviceManager final : public ChangeListener } float currentSampleRate = 44100.f; - std::atomic lastCallbackTime = 0.0f; + AtomicValue lastCallbackTime = 0.0f; struct MidiInputPort { - std::atomic enabled = false; + AtomicValue enabled = false; OwnedArray devices; moodycamel::ConcurrentQueue> queue; }; struct MidiOutputPort { - std::atomic enabled = false; + AtomicValue enabled = false; OwnedArray devices; // We need this queue because we are not inside the global Pd lock, and MIDI data can be enqueued from the message thread (but inside the audio lock) moodycamel::ConcurrentQueue> queue;