| 117 | |
| 118 | |
| 119 | void LadspaSubPluginFeatures::listSubPluginKeys( |
| 120 | const Plugin::Descriptor * _desc, KeyList & _kl ) const |
| 121 | { |
| 122 | Ladspa2LMMS * lm = Engine::getLADSPAManager(); |
| 123 | |
| 124 | l_sortable_plugin_t plugins; |
| 125 | switch( m_type ) |
| 126 | { |
| 127 | case Plugin::Instrument: |
| 128 | plugins = lm->getInstruments(); |
| 129 | break; |
| 130 | case Plugin::Effect: |
| 131 | plugins = lm->getValidEffects(); |
| 132 | //plugins += lm->getInvalidEffects(); |
| 133 | break; |
| 134 | case Plugin::Tool: |
| 135 | plugins = lm->getAnalysisTools(); |
| 136 | break; |
| 137 | case Plugin::Other: |
| 138 | plugins = lm->getOthers(); |
| 139 | break; |
| 140 | default: |
| 141 | break; |
| 142 | } |
| 143 | |
| 144 | for( l_sortable_plugin_t::const_iterator it = plugins.begin(); |
| 145 | it != plugins.end(); ++it ) |
| 146 | { |
| 147 | if( lm->getDescription( ( *it ).second )->inputChannels <= |
| 148 | Engine::mixer()->audioDev()->channels() ) |
| 149 | { |
| 150 | _kl.push_back( ladspaKeyToSubPluginKey( _desc, ( *it ).first, ( *it ).second ) ); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | |
| 156 |
nothing calls this directly
no test coverage detected