From 58e06783c9a1f3e5d40989d4bba303a55d7e7b46 Mon Sep 17 00:00:00 2001 From: bruce Date: Sun, 31 Aug 2014 19:28:05 +0900 Subject: [PATCH] Update all JUCE library versions, adjust channel LED positions, fix warnings. --- JuceOPLVSTi.jucer | 46 ++++++++++++++++++++++++++------------ Source/PluginGui.cpp | 10 ++++----- Source/PluginProcessor.cpp | 2 +- 3 files changed, 38 insertions(+), 20 deletions(-) diff --git a/JuceOPLVSTi.jucer b/JuceOPLVSTi.jucer index 0d3f002..4792dda 100644 --- a/JuceOPLVSTi.jucer +++ b/JuceOPLVSTi.jucer @@ -7,7 +7,8 @@ pluginIsSynth="1" pluginWantsMidiIn="1" pluginProducesMidiOut="0" pluginSilenceInIsSilenceOut="0" pluginEditorRequiresKeys="0" pluginAUExportPrefix="JuceOPLVSTiAU" pluginRTASCategory="" aaxIdentifier="com.plainweave.JuceOPLVSTi" - pluginAAXCategory="AAX_ePlugInCategory_Dynamics" jucerVersion="3.1.0"> + pluginAAXCategory="AAX_ePlugInCategory_Dynamics" jucerVersion="3.1.0" + buildVST3="0" buildRTAS="0" buildAAX="0" includeBinaryInAppConfig="1"> - - - - - - - - - - - + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + diff --git a/Source/PluginGui.cpp b/Source/PluginGui.cpp index d82703f..e66a5ab 100644 --- a/Source/PluginGui.cpp +++ b/Source/PluginGui.cpp @@ -914,9 +914,9 @@ PluginGui::PluginGui (JuceOplvstiAudioProcessor* ownerFilter) keyscaleEnvButton2->setColour(TextButton::buttonColourId, Colour(COLOUR_MID)); sustainButton2->setColour(TextButton::buttonColourId, Colour(COLOUR_MID)); - for (int i = 0; i < channels.size(); ++i) + for (unsigned int i = 0; i < channels.size(); ++i) { - ImageButton *channel=new ImageButton("new button"); + ImageButton *channel = new ImageButton("new button"); addAndMakeVisible(channel); channel->addListener(this); @@ -926,7 +926,7 @@ PluginGui::PluginGui (JuceOplvstiAudioProcessor* ownerFilter) Image(), 1.000f, Colour(0x00000000), ImageCache::getFromMemory(channelon_png, channelon_pngSize), 1.000f, Colour(0x00000000)); - channels[i]=channel; + channels[i] = channel; } //[/UserPreSize] @@ -1117,8 +1117,8 @@ void PluginGui::resized() keyscaleAttenuationComboBox->setBounds (264, 88, 72, 24); groupComponent4->setBounds (16, 800, 408, 64); //[UserResized] Add your own custom resize handling here.. - for (int i = 0; i < channels.size(); ++i) - channels[i]->setBounds(32+24*i+4, 824+4, 16, 16); + for (unsigned int i = 0; i < channels.size(); ++i) + channels[i]->setBounds(32+44*i+4, 824+4, 16, 16); //[/UserResized] } diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 592348a..8b67067 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -386,7 +386,7 @@ void JuceOplvstiAudioProcessor::applyPitchBend() JuceOplvstiAudioProcessor::~JuceOplvstiAudioProcessor() { - for (int i=0; i < params.size(); ++i) + for (unsigned int i=0; i < params.size(); ++i) delete params[i]; }