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:
parent
7f901e452f
commit
1caff11c6b
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue