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

Method loadAPVTS

source/state/property.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 void Property::loadAPVTS(juce::AudioProcessorValueTreeState& apvts) {
21 std::lock_guard<std::mutex> lock_guard{mutex_};
22 if (checkCreateDirectory()) {
23 if (const auto xml = juce::XmlDocument::parse(kUIPath); xml) {
24 apvts.replaceState(juce::ValueTree::fromXml(*xml));
25 }
26 }
27 }
28
29 void Property::saveAPVTS(juce::AudioProcessorValueTreeState& apvts) {
30 std::lock_guard<std::mutex> lock{mutex_};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected