Skip to content

Commit

Permalink
Code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Feb 15, 2025
1 parent 21494d7 commit ad6c47a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Source/Standalone/InternalSynth.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class InternalSynth final : public Thread {
FluidSynth* synth = nullptr;
FluidSettings* settings = nullptr;

std::atomic<bool> ready = false;
AtomicValue<bool> ready = false;
std::mutex unprepareLock;

std::atomic<int> lastSampleRate = 0;
std::atomic<int> lastBlockSize = 0;
std::atomic<int> lastNumChannels = 0;
AtomicValue<int> lastSampleRate = 0;
AtomicValue<int> lastBlockSize = 0;
AtomicValue<int> lastNumChannels = 0;

AudioBuffer<float> internalBuffer;
};
6 changes: 3 additions & 3 deletions Source/Utility/MidiDeviceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,16 @@ class MidiDeviceManager final : public ChangeListener
}

float currentSampleRate = 44100.f;
std::atomic<float> lastCallbackTime = 0.0f;
AtomicValue<float> lastCallbackTime = 0.0f;

struct MidiInputPort {
std::atomic<bool> enabled = false;
AtomicValue<bool> enabled = false;
OwnedArray<MidiInput> devices;
moodycamel::ConcurrentQueue<std::pair<MidiMessage, int>> queue;
};

struct MidiOutputPort {
std::atomic<bool> enabled = false;
AtomicValue<bool> enabled = false;
OwnedArray<MidiOutput> 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<std::pair<MidiMessage, int>> queue;
Expand Down

0 comments on commit ad6c47a

Please sign in to comment.