MCPcopy Create free account
hub / github.com/LMMS/lmms / saveSettings

Method saveSettings

plugins/dynamics_processor/dynamics_processor_controls.cpp:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94void dynProcControls::saveSettings( QDomDocument & _doc,
95 QDomElement & _this )
96{
97//save input, output knobs
98 m_inputModel.saveSettings( _doc, _this, "inputGain" );
99 m_outputModel.saveSettings( _doc, _this, "outputGain" );
100 m_attackModel.saveSettings( _doc, _this, "attack" );
101 m_releaseModel.saveSettings( _doc, _this, "release" );
102 m_stereomodeModel.saveSettings( _doc, _this, "stereoMode" );
103
104
105//save waveshape
106 QString sampleString;
107 base64::encode( (const char *)m_wavegraphModel.samples(),
108 m_wavegraphModel.length() * sizeof(float), sampleString );
109 _this.setAttribute( "waveShape", sampleString );
110
111}
112
113
114void dynProcControls::setDefaultShape()

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected