MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / setStateInformation

Method setStateInformation

source/PluginProcessor.cpp:348–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void PluginProcessor::setStateInformation(const void* data, const int size_in_bytes) {
349 std::unique_ptr<juce::XmlElement> xml_state(getXmlFromBinary(data, size_in_bytes));
350 if (xml_state != nullptr && xml_state->hasTagName("ZLCompressorParaState")) {
351 const auto temp_tree = juce::ValueTree::fromXml(*xml_state);
352 parameters_.replaceState(temp_tree.getChildWithName(parameters_.state.getType()));
353 parameters_NA_.replaceState(temp_tree.getChildWithName(parameters_NA_.state.getType()));
354 }
355}
356
357void PluginProcessor::updateChannelLayout() {
358 // determine current channel layout

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected