MCPcopy Create free account
hub / github.com/andrewreeman/SpectralSuite / getStateInformation

Method getStateInformation

shared/SpectralAudioPlugin.cpp:335–351  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

333
334//==============================================================================
335void SpectralAudioPlugin::getStateInformation (MemoryBlock& destData)
336{
337 Logger::writeToLog("[getStateInformation]");
338 auto state = parameters->copyState();
339 //AudioParameterFloat* shift = (AudioParameterFloat*)parameters->getParameter("shift");
340 //AudioParameterFloat* min = (AudioParameterFloat*)parameters.getParameter("shiftMinRange");
341 //AudioParameterFloat* max = (AudioParameterFloat*)parameters.getParameter("shiftMaxRange");
342 std::unique_ptr<XmlElement> xml(state.createXml());
343
344 // encode range
345
346 //XmlElement* shiftXmlElement = xml->getChildByAttribute("id", "shift");
347 //shiftXmlElement->setAttribute("minRange", min->get());
348 //shiftXmlElement->setAttribute("maxRange", max->get());
349
350 copyXmlToBinary(*xml, destData);
351}
352
353void SpectralAudioPlugin::setStateInformation (const void* data, int sizeInBytes)
354{

Callers

nothing calls this directly

Calls 1

copyStateMethod · 0.45

Tested by

no test coverage detected