Browse Source

ARA: Fix a float inequality warning

v7.0.9
Tom Poole 2 years ago
parent
commit
5cd77b0c9a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_processors/utilities/ARA/juce_ARAModelObjects.cpp

+ 1
- 1
modules/juce_audio_processors/utilities/ARA/juce_ARAModelObjects.cpp View File

@@ -91,7 +91,7 @@ double ARARegionSequence::getCommonSampleRate() const
const auto range = getPlaybackRegions();
const auto sampleRate = range.size() > 0 ? getSampleRate (range.front()) : 0.0;
if (std::any_of (range.begin(), range.end(), [&] (auto& x) { return getSampleRate (x) != sampleRate; }))
if (std::any_of (range.begin(), range.end(), [&] (auto& x) { return ! exactlyEqual (getSampleRate (x), sampleRate); }))
return 0.0;
return sampleRate;


Loading…
Cancel
Save