1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed some GCC compiler warnings and removed deprecated functions

This commit is contained in:
Tom Poole 2019-06-04 13:42:34 +01:00
parent ddd4e84b9e
commit 16dd26649a
109 changed files with 381 additions and 289 deletions

View file

@ -175,7 +175,7 @@ public:
// We need to clear the output buffers, in case they're full of junk..
for (int i = 0; i < numOutputChannels; ++i)
if (outputChannelData[i] != nullptr)
zeromem (outputChannelData[i], sizeof (float) * (size_t) numSamples);
zeromem (outputChannelData[i], (size_t) numSamples * sizeof (float));
}
}

View file

@ -149,6 +149,8 @@ struct SineWaveVoice : public SynthesiserVoice
}
}
using SynthesiserVoice::renderNextBlock;
private:
double currentAngle = 0.0, angleDelta = 0.0, level = 0.0, tailOff = 0.0;
};

View file

@ -828,6 +828,8 @@ public:
}
}
using MPESynthesiserVoice::renderNextBlock;
private:
//==============================================================================
float getNextSample() noexcept