From ac2cf8f372167910b56fd17a73e8c96aa53c700c Mon Sep 17 00:00:00 2001 From: James Ball Date: Sun, 10 Sep 2023 19:30:04 +0100 Subject: [PATCH] Fix default midiEndabled --- Source/PluginProcessor.cpp | 1 + Source/PluginProcessor.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index c2db5af..fc9dc84 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -649,6 +649,7 @@ void OscirenderAudioProcessor::setStateInformation(const void* data, int sizeInB } changeCurrentFile(xml->getIntAttribute("currentFile", -1)); broadcaster.sendChangeMessage(); + prevMidiEnabled = !midiEnabled->getBoolValue(); } } diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index d3cf572..d5f0762 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -62,7 +62,6 @@ public: std::shared_ptr consumerRegister(std::vector& buffer); void consumerStop(std::shared_ptr consumer); void consumerRead(std::shared_ptr consumer); - void setMidiEnabled(bool enabled); int VERSION_HINT = 1;