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

Method LadspaEffect

plugins/LadspaEffect/LadspaEffect.cpp:68–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68LadspaEffect::LadspaEffect( Model * _parent,
69 const Descriptor::SubPluginFeatures::Key * _key ) :
70 Effect( &ladspaeffect_plugin_descriptor, _parent, _key ),
71 m_controls( NULL ),
72 m_maxSampleRate( 0 ),
73 m_key( LadspaSubPluginFeatures::subPluginKeyToLadspaKey( _key ) )
74{
75 Ladspa2LMMS * manager = Engine::getLADSPAManager();
76 if( manager->getDescription( m_key ) == NULL )
77 {
78 Engine::getSong()->collectError(tr( "Unknown LADSPA plugin %1 requested." ).arg(
79 m_key.second ) );
80 setOkay( false );
81 return;
82 }
83
84 setDisplayName( manager->getShortName( m_key ) );
85
86 pluginInstantiation();
87
88 connect( Engine::mixer(), SIGNAL( sampleRateChanged() ),
89 this, SLOT( changeSampleRate() ) );
90}
91
92
93

Callers

nothing calls this directly

Calls 7

getLADSPAManagerFunction · 0.85
getSongFunction · 0.85
setOkayFunction · 0.85
mixerFunction · 0.85
getDescriptionMethod · 0.80
collectErrorMethod · 0.80
getShortNameMethod · 0.80

Tested by

no test coverage detected