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

Method saveSettings

plugins/VstEffect/VstEffectControls.cpp:121–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120
121void VstEffectControls::saveSettings( QDomDocument & _doc, QDomElement & _this )
122{
123 _this.setAttribute( "plugin", m_effect->m_key.attributes["file"] );
124 m_effect->m_pluginMutex.lock();
125 if( m_effect->m_plugin != NULL )
126 {
127 m_effect->m_plugin->saveSettings( _doc, _this );
128 if (knobFModel != NULL) {
129 const QMap<QString, QString> & dump = m_effect->m_plugin->parameterDump();
130 paramCount = dump.size();
131 char paramStr[35];
132 for( int i = 0; i < paramCount; i++ )
133 {
134 if (knobFModel[i]->isAutomated() || knobFModel[i]->controllerConnection()) {
135 sprintf( paramStr, "param%d", i);
136 knobFModel[i]->saveSettings( _doc, _this, paramStr );
137 }
138 }
139 }
140 }
141 m_effect->m_pluginMutex.unlock();
142}
143
144
145

Callers

nothing calls this directly

Calls 4

lockMethod · 0.45
sizeMethod · 0.45
isAutomatedMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected