| 346 | } |
| 347 | |
| 348 | void 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 | |
| 357 | void PluginProcessor::updateChannelLayout() { |
| 358 | // determine current channel layout |
nothing calls this directly
no outgoing calls
no test coverage detected