Browse Source

Fixed a live build error compiling the numeric header

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
aa40ea1eb8
2 changed files with 8 additions and 10 deletions
  1. +0
    -2
      modules/juce_audio_processors/juce_audio_processors.cpp
  2. +8
    -8
      modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp

+ 0
- 2
modules/juce_audio_processors/juce_audio_processors.cpp View File

@@ -39,8 +39,6 @@
#include "juce_audio_processors.h"
#include <juce_gui_extra/juce_gui_extra.h>
#include <numeric>
//==============================================================================
#if JUCE_MAC
#if JUCE_SUPPORT_CARBON \


+ 8
- 8
modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp View File

@@ -429,14 +429,14 @@ bool AudioProcessorValueTreeState::flushParameterValuesToValueTree()
{
ScopedLock lock (valueTreeChanging);
return std::accumulate (std::begin (parameters), std::end (parameters),
false,
[this](bool anyUpdated, std::unique_ptr<ParameterAdapter>& ap) {
return ap->flushToTree (getChildValueTree (ap->getParameter().paramID),
valuePropertyID,
undoManager)
|| anyUpdated;
});
bool anyUpdated = false;
for (auto& p : parameters)
anyUpdated |= p->flushToTree (getChildValueTree (p->getParameter().paramID),
valuePropertyID,
undoManager);
return anyUpdated;
}
void AudioProcessorValueTreeState::timerCallback()


Loading…
Cancel
Save