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

Tidied up a few VS warnings.

This commit is contained in:
jules 2014-11-20 11:10:45 +02:00
parent 7f901e452f
commit 1caff11c6b
2 changed files with 3 additions and 3 deletions

View file

@ -266,7 +266,7 @@ private:
animator.animateComponent (componentsToAnimate.getUnchecked(i),
r.reduced (10),
1.0f,
900 + 300 * std::sin (angle),
900 + (int) (300 * std::sin (angle)),
false,
0.0,
0.0);

View file

@ -101,7 +101,7 @@ struct SineWaveVoice : public SynthesiserVoice
{
while (--numSamples >= 0)
{
const float currentSample = std::sin (currentAngle) * level * tailOff;
const float currentSample = (float) (std::sin (currentAngle) * level * tailOff);
for (int i = outputBuffer.getNumChannels(); --i >= 0;)
outputBuffer.addSample (i, startSample, currentSample);
@ -124,7 +124,7 @@ struct SineWaveVoice : public SynthesiserVoice
{
while (--numSamples >= 0)
{
const float currentSample = std::sin (currentAngle) * level;
const float currentSample = (float) (std::sin (currentAngle) * level);
for (int i = outputBuffer.getNumChannels(); --i >= 0;)
outputBuffer.addSample (i, startSample, currentSample);