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

Fixed compiler warnings on Visual Studio 2015 RTM.

This commit is contained in:
Timur Doumler 2015-07-23 15:57:18 +01:00
parent f59ab9e4a3
commit dca4d77f9d
37 changed files with 132 additions and 124 deletions

View file

@ -158,7 +158,7 @@ public:
return defaultValue;
}
String getName (int maximumStringLength) const override
String getName (int /* maximumStringLength */) const override
{
return name;
}
@ -207,11 +207,11 @@ JuceDemoPluginAudioProcessor::~JuceDemoPluginAudioProcessor()
}
//==============================================================================
void JuceDemoPluginAudioProcessor::prepareToPlay (double sampleRate, int /*samplesPerBlock*/)
void JuceDemoPluginAudioProcessor::prepareToPlay (double newSampleRate, int /*samplesPerBlock*/)
{
// Use this method as the place to do any pre-playback
// initialisation that you need..
synth.setCurrentPlaybackSampleRate (sampleRate);
synth.setCurrentPlaybackSampleRate (newSampleRate);
keyboardState.reset();
delayBuffer.clear();
}
@ -328,8 +328,8 @@ void JuceDemoPluginAudioProcessor::setStateInformation (const void* data, int si
lastUIWidth = xmlState->getIntAttribute ("uiWidth", lastUIWidth);
lastUIHeight = xmlState->getIntAttribute ("uiHeight", lastUIHeight);
gain->setValue (xmlState->getDoubleAttribute ("gain", gain->getValue()));
delay->setValue (xmlState->getDoubleAttribute ("delay", delay->getValue()));
gain->setValue ((float) xmlState->getDoubleAttribute ("gain", gain->getValue()));
delay->setValue ((float) xmlState->getDoubleAttribute ("delay", delay->getValue()));
}
}
}