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:
parent
ff358fac27
commit
256b88142e
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue