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

Made AudioSourcePlayer::setGain() thread-safe

This commit is contained in:
ed 2019-10-31 08:44:58 +00:00
parent ff358fac27
commit 256b88142e

View file

@ -105,7 +105,8 @@ private:
float* outputChans[128];
const float* inputChans[128];
AudioBuffer<float> tempBuffer;
float lastGain = 1.0f, gain = 1.0f;
float lastGain = 1.0f;
std::atomic<float> gain { 1.0f };
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioSourcePlayer)
};