mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
VST3 Host: Only send updates for modified parameters
This commit is contained in:
parent
f35c2d90e2
commit
1df59f7469
1 changed files with 3 additions and 3 deletions
|
|
@ -942,9 +942,9 @@ public:
|
|||
void set (size_t index, float value)
|
||||
{
|
||||
jassert (index < size());
|
||||
values[index].store (value, std::memory_order_relaxed);
|
||||
flags[index / numFlagBits].fetch_or ((FlagType) 1 << (index % numFlagBits),
|
||||
std::memory_order_acq_rel);
|
||||
const auto previous = values[index].exchange (value, std::memory_order_relaxed);
|
||||
const auto bit = previous == value ? ((FlagType) 0) : ((FlagType) 1 << (index % numFlagBits));
|
||||
flags[index / numFlagBits].fetch_or (bit, std::memory_order_acq_rel);
|
||||
}
|
||||
|
||||
float get (size_t index) const noexcept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue