From e772b4bcf031c29612f3142ecaa163fef087bf1c Mon Sep 17 00:00:00 2001 From: Alex Birch Date: Sun, 28 Jul 2019 20:17:03 +0100 Subject: [PATCH] fix typo that was causing soundfont loading to fail --- Source/PluginProcessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index e9831c5..94b270c 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -206,7 +206,7 @@ AudioProcessor::BusesProperties JuicySFAudioProcessor::getBusesProperties() { .withOutput ("Output", AudioChannelSet::stereo(), true); } -void JuicySFAudioProcessor::processBlock (AudioBuffer& buffer, MidiBuffer& midiMessages) { +void JuicySFAudioProcessor::processBlock(AudioBuffer& buffer, MidiBuffer& midiMessages) { jassert (!isUsingDoublePrecision()); const int numSamples = buffer.getNumSamples(); @@ -482,7 +482,7 @@ void JuicySFAudioProcessor::setStateInformation (const void* data, int sizeInByt if (xmlElement) { ValueTree tree{valueTreeState.state.getChildWithName("soundFont")}; Value value{tree.getPropertyAsValue("path", nullptr)}; - value = xmlState->getStringAttribute("path", value.getValue()); + value = xmlElement->getStringAttribute("path", value.getValue()); } // valueTreeState.getParameter("soundFontPath")->getValue()