| 66 | |
| 67 | |
| 68 | LadspaEffect::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 |
nothing calls this directly
no test coverage detected