@@ -134,7 +134,7 @@ static const String timeToTimecodeString (const double seconds) | |||||
} | } | ||||
// quick-and-dirty function to format a bars/beats string | // quick-and-dirty function to format a bars/beats string | ||||
static const String ppqToBarsBeatsString (double ppq, double lastBarPPQ, int numerator, int denominator) | |||||
static const String ppqToBarsBeatsString (double ppq, double /*lastBarPPQ*/, int numerator, int denominator) | |||||
{ | { | ||||
if (numerator == 0 || denominator == 0) | if (numerator == 0 || denominator == 0) | ||||
return "1|1|0"; | return "1|1|0"; | ||||
@@ -20,8 +20,8 @@ public: | |||||
{ | { | ||||
} | } | ||||
bool appliesToNote (const int midiNoteNumber) { return true; } | |||||
bool appliesToChannel (const int midiChannel) { return true; } | |||||
bool appliesToNote (const int /*midiNoteNumber*/) { return true; } | |||||
bool appliesToChannel (const int /*midiChannel*/) { return true; } | |||||
}; | }; | ||||
//============================================================================== | //============================================================================== | ||||
@@ -41,7 +41,7 @@ public: | |||||
} | } | ||||
void startNote (const int midiNoteNumber, const float velocity, | void startNote (const int midiNoteNumber, const float velocity, | ||||
SynthesiserSound* sound, const int currentPitchWheelPosition) | |||||
SynthesiserSound* /*sound*/, const int /*currentPitchWheelPosition*/) | |||||
{ | { | ||||
currentAngle = 0.0; | currentAngle = 0.0; | ||||
level = velocity * 0.15; | level = velocity * 0.15; | ||||
@@ -73,12 +73,12 @@ public: | |||||
} | } | ||||
} | } | ||||
void pitchWheelMoved (const int newValue) | |||||
void pitchWheelMoved (const int /*newValue*/) | |||||
{ | { | ||||
// can't be bothered implementing this for the demo! | // can't be bothered implementing this for the demo! | ||||
} | } | ||||
void controllerMoved (const int controllerNumber, const int newValue) | |||||
void controllerMoved (const int /*controllerNumber*/, const int /*newValue*/) | |||||
{ | { | ||||
// not interested in controllers in this case. | // not interested in controllers in this case. | ||||
} | } | ||||
@@ -206,7 +206,7 @@ const String JuceDemoPluginAudioProcessor::getParameterText (int index) | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
void JuceDemoPluginAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBlock) | |||||
void JuceDemoPluginAudioProcessor::prepareToPlay (double sampleRate, int /*samplesPerBlock*/) | |||||
{ | { | ||||
// Use this method as the place to do any pre-playback | // Use this method as the place to do any pre-playback | ||||
// initialisation that you need.. | // initialisation that you need.. | ||||
@@ -336,12 +336,12 @@ const String JuceDemoPluginAudioProcessor::getOutputChannelName (const int chann | |||||
return String (channelIndex + 1); | return String (channelIndex + 1); | ||||
} | } | ||||
bool JuceDemoPluginAudioProcessor::isInputChannelStereoPair (int index) const | |||||
bool JuceDemoPluginAudioProcessor::isInputChannelStereoPair (int /*index*/) const | |||||
{ | { | ||||
return true; | return true; | ||||
} | } | ||||
bool JuceDemoPluginAudioProcessor::isOutputChannelStereoPair (int index) const | |||||
bool JuceDemoPluginAudioProcessor::isOutputChannelStereoPair (int /*index*/) const | |||||
{ | { | ||||
return true; | return true; | ||||
} | } | ||||
@@ -43,8 +43,8 @@ public: | |||||
const String getParameterName (int index); | const String getParameterName (int index); | ||||
const String getParameterText (int index); | const String getParameterText (int index); | ||||
const String getInputChannelName (const int channelIndex) const; | |||||
const String getOutputChannelName (const int channelIndex) const; | |||||
const String getInputChannelName (int channelIndex) const; | |||||
const String getOutputChannelName (int channelIndex) const; | |||||
bool isInputChannelStereoPair (int index) const; | bool isInputChannelStereoPair (int index) const; | ||||
bool isOutputChannelStereoPair (int index) const; | bool isOutputChannelStereoPair (int index) const; | ||||
@@ -52,11 +52,11 @@ public: | |||||
bool producesMidi() const; | bool producesMidi() const; | ||||
//============================================================================== | //============================================================================== | ||||
int getNumPrograms() { return 0; } | |||||
int getCurrentProgram() { return 0; } | |||||
void setCurrentProgram (int index) { } | |||||
const String getProgramName (int index) { return String::empty; } | |||||
void changeProgramName (int index, const String& newName) { } | |||||
int getNumPrograms() { return 0; } | |||||
int getCurrentProgram() { return 0; } | |||||
void setCurrentProgram (int /*index*/) { } | |||||
const String getProgramName (int /*index*/) { return String::empty; } | |||||
void changeProgramName (int /*index*/, const String& /*newName*/) { } | |||||
//============================================================================== | //============================================================================== | ||||
void getStateInformation (MemoryBlock& destData); | void getStateInformation (MemoryBlock& destData); | ||||
@@ -141,4 +141,7 @@ private: | |||||
#endif | #endif | ||||
return UnknownHost; | return UnknownHost; | ||||
} | } | ||||
PluginHostType (const PluginHostType&); | |||||
PluginHostType& operator= (const PluginHostType&); | |||||
}; | }; |
@@ -173,8 +173,8 @@ void DrawableButton::paintButton (Graphics& g, | |||||
{ | { | ||||
g.setFont ((float) textH); | g.setFont ((float) textH); | ||||
g.setColour (getLookAndFeel().findColour (DrawableButton::textColourId) | |||||
.withMultipliedAlpha (isEnabled() ? 1.0f : 0.4f)); | |||||
g.setColour (findColour (DrawableButton::textColourId) | |||||
.withMultipliedAlpha (isEnabled() ? 1.0f : 0.4f)); | |||||
g.drawFittedText (getButtonText(), | g.drawFittedText (getButtonText(), | ||||
2, getHeight() - textH - 1, | 2, getHeight() - textH - 1, | ||||