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

Method reloadPlugin

plugins/zynaddsubfx/ZynAddSubFx.cpp:387–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385
386
387void ZynAddSubFxInstrument::reloadPlugin()
388{
389 // save state of current plugin instance
390 DataFile m( DataFile::InstrumentTrackSettings );
391 saveSettings( m, m.content() );
392
393 // init plugin (will delete current one and create a new instance)
394 initPlugin();
395
396 // and load the settings again
397 loadSettings( m.content() );
398}
399
400
401

Callers 1

toggleUIMethod · 0.45

Calls 2

saveSettingsFunction · 0.85
loadSettingsFunction · 0.50

Tested by

no test coverage detected