| 125 | |
| 126 | |
| 127 | void 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 |
nothing calls this directly
no test coverage detected