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

Method listSubPluginKeys

plugins/LadspaEffect/LadspaSubPluginFeatures.cpp:119–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119void 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

Callers

nothing calls this directly

Calls 7

getLADSPAManagerFunction · 0.85
mixerFunction · 0.85
ladspaKeyToSubPluginKeyFunction · 0.85
getDescriptionMethod · 0.80
channelsMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected