Browse Source

Got rid of some more Visual Studio compiler warnings.

tags/2021-05-28
Timur Doumler 9 years ago
parent
commit
97ffb5ad93
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
  2. +3
    -3
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 3
- 3
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -1873,10 +1873,10 @@ public:
{ {
if (processor != nullptr) if (processor != nullptr)
{ {
const double currentSampleRate = getSampleRate();
const double sampleRate = getSampleRate();
if (currentSampleRate > 0.0)
return jlimit (0, 0x7fffffff, (int) processor->getTailSamples()) / currentSampleRate;
if (sampleRate > 0.0)
return jlimit (0, 0x7fffffff, (int) processor->getTailSamples()) / sampleRate;
} }
return 0.0; return 0.0;


+ 3
- 3
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -900,13 +900,13 @@ public:
if (effect == nullptr) if (effect == nullptr)
return 0.0; return 0.0;
const double currentSampleRate = getSampleRate();
const double sampleRate = getSampleRate();
if (currentSampleRate <= 0)
if (sampleRate <= 0)
return 0.0; return 0.0;
VstIntPtr samples = dispatch (effGetTailSize, 0, 0, 0, 0); VstIntPtr samples = dispatch (effGetTailSize, 0, 0, 0, 0);
return samples / currentSampleRate;
return samples / sampleRate;
} }
bool acceptsMidi() const override { return wantsMidiMessages; } bool acceptsMidi() const override { return wantsMidiMessages; }


Loading…
Cancel
Save