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

Make nextFFTBlockReady flag atomic.

This commit is contained in:
James Stubbs 2023-09-15 15:53:35 -04:00
parent 0dfaa98e86
commit 7eaf2d4a6e

View file

@ -183,7 +183,7 @@ private:
float fifo [fftSize];
float fftData [2 * fftSize];
int fifoIndex = 0;
bool nextFFTBlockReady = false;
std::atomic<bool> nextFFTBlockReady = false;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SimpleFFTDemo)
};