1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CoreAudio: Fixed a data race on isWaitingForInput in DeviceWrapper

This commit is contained in:
ed 2020-11-03 15:52:47 +00:00
parent 09ecc0ebef
commit 270e056e40

View file

@ -1986,7 +1986,8 @@ private:
AudioIODeviceCombiner& owner;
std::unique_ptr<CoreAudioIODevice> device;
int inputIndex = 0, numInputChans = 0, outputIndex = 0, numOutputChans = 0;
bool useInputs = false, useOutputs = false, isWaitingForInput = false;
bool useInputs = false, useOutputs = false;
std::atomic<bool> isWaitingForInput { false };
AbstractFifo inputFifo { 32 }, outputFifo { 32 };
bool done = false;