Commit fcb28980 authored by Jonathan Hyde's avatar Jonathan Hyde

Minor fixes

parent a9279437
...@@ -213,8 +213,8 @@ void UtilityAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBloc ...@@ -213,8 +213,8 @@ void UtilityAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBloc
editor->m_lowPass.setValue(*p_lowPass); editor->m_lowPass.setValue(*p_lowPass);
}*/ }*/
meterSourceIn.resize(2, 0.2 * sampleRate / samplesPerBlock); meterSourceIn.resize(2, std::max(1.0, 0.2 * sampleRate / samplesPerBlock));
meterSourceOut.resize(2, 0.2 * sampleRate / samplesPerBlock); meterSourceOut.resize(2, std::max(1.0, 0.2 * sampleRate / samplesPerBlock));
} }
void UtilityAudioProcessor::releaseResources() void UtilityAudioProcessor::releaseResources()
...@@ -449,12 +449,13 @@ void UtilityAudioProcessor::getStateInformation (MemoryBlock& destData) ...@@ -449,12 +449,13 @@ void UtilityAudioProcessor::getStateInformation (MemoryBlock& destData)
xml->setAttribute("p_gainR", (double)*p_gainR); xml->setAttribute("p_gainR", (double)*p_gainR);
xml->setAttribute("p_phaseL", (bool)*p_phaseL); xml->setAttribute("p_phaseL", (bool)*p_phaseL);
xml->setAttribute("p_phaseR", (bool)*p_phaseR); xml->setAttribute("p_phaseR", (bool)*p_phaseR);
xml->setAttribute("p_muteL", (bool)*p_phaseL); xml->setAttribute("p_muteL", (bool)*p_muteL);
xml->setAttribute("p_muteR", (bool)*p_muteR); xml->setAttribute("p_muteR", (bool)*p_muteR);
xml->setAttribute("p_gainM", (double)*p_gainM); xml->setAttribute("p_gainM", (double)*p_gainM);
xml->setAttribute("p_gainS", (double)*p_gainS); xml->setAttribute("p_gainS", (double)*p_gainS);
xml->setAttribute("p_width", (double)*p_width); xml->setAttribute("p_width", (double)*p_width);
xml->setAttribute("p_muteM", (bool)*p_muteS); xml->setAttribute("p_muteM", (bool)*p_muteM);
xml->setAttribute("p_muteS", (bool)*p_muteS);
xml->setAttribute("p_lowPass", (double)*p_lowPass); xml->setAttribute("p_lowPass", (double)*p_lowPass);
xml->setAttribute("p_highPass", (double)*p_highPass); xml->setAttribute("p_highPass", (double)*p_highPass);
xml->setAttribute("p_hpfOn", (bool)*p_hpfOn); xml->setAttribute("p_hpfOn", (bool)*p_hpfOn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment