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

Method openPlugin

plugins/VstEffect/VstEffect.cpp:127–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127void VstEffect::openPlugin( const QString & _plugin )
128{
129 TextFloat * tf = NULL;
130 if( gui )
131 {
132 tf = TextFloat::displayMessage(
133 VstPlugin::tr( "Loading plugin" ),
134 VstPlugin::tr( "Please wait while loading VST plugin..." ),
135 PLUGIN_NAME::getIconPixmap( "logo", 24, 24 ), 0 );
136 }
137
138 QMutexLocker ml( &m_pluginMutex ); Q_UNUSED( ml );
139 m_plugin = QSharedPointer<VstPlugin>(new VstPlugin( _plugin ));
140 if( m_plugin->failed() )
141 {
142 m_plugin.clear();
143 delete tf;
144 collectErrorForUI( VstPlugin::tr( "The VST plugin %1 could not be loaded." ).arg( _plugin ) );
145 return;
146 }
147
148 delete tf;
149
150 m_key.attributes["file"] = _plugin;
151}
152
153
154

Callers

nothing calls this directly

Calls 2

getIconPixmapFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected