From 8415df4d3a151f5c95e535b6649ece4234fa5cbc Mon Sep 17 00:00:00 2001 From: Pascal Gauthier Date: Sat, 4 Jan 2014 12:39:33 -0500 Subject: [PATCH] MSVC Fix --- Source/PluginFx.cpp | 4 +++- Source/PluginFx.h | 6 +++--- Source/PluginProcessor.cpp | 1 + Source/PluginProcessor.h | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/PluginFx.cpp b/Source/PluginFx.cpp index 36386ab..1f3c27c 100644 --- a/Source/PluginFx.cpp +++ b/Source/PluginFx.cpp @@ -45,7 +45,9 @@ static inline float crossfade(float amount, float a, float b) { } void PluginFx::init(int sampleRate) { - srate = sampleRate; + uiCutoff = 0; + uiReso = 0; + srate = sampleRate; output = 0; for(int i=0;i<4;i++) state[i] = 0; diff --git a/Source/PluginFx.h b/Source/PluginFx.h index 42976ae..edbaec4 100644 --- a/Source/PluginFx.h +++ b/Source/PluginFx.h @@ -21,11 +21,11 @@ class PluginFx { float p, Q; int srate; float state[4]; - float output = 0; + float output; public: - float uiCutoff = 0; - float uiReso = 0; + float uiCutoff; + float uiReso; void init(int sampleRate); void process(float *work, int sampleSize); diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index ddbbaca..e0d1ed1 100755 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -46,6 +46,7 @@ DexedAudioProcessor::DexedAudioProcessor() { workBlock = NULL; initCtrl(); setCurrentProgram(0); + sendSysexChange = true; } DexedAudioProcessor::~DexedAudioProcessor() { diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index 1ebf216..f1316c9 100755 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -94,7 +94,7 @@ public : static const int REFRESH_COMP = 1 << 1; int refreshUI; - bool sendSysexChange = true; + bool sendSysexChange; char data[161]; Array ctrl;