| 290 | } |
| 291 | |
| 292 | bool LadspaEffectBase::SaveSettings( |
| 293 | const EffectSettings &settings, CommandParameters & parms) const |
| 294 | { |
| 295 | const auto &controls = GetSettings(settings).controls; |
| 296 | for (unsigned long p = 0; p < mData->PortCount; p++) { |
| 297 | LADSPA_PortDescriptor d = mData->PortDescriptors[p]; |
| 298 | if (LADSPA_IS_PORT_CONTROL(d) && LADSPA_IS_PORT_INPUT(d)) |
| 299 | if (!parms.Write(LAT1CTOWX(mData->PortNames[p]), controls[p])) |
| 300 | return false; |
| 301 | } |
| 302 | return true; |
| 303 | } |
| 304 | |
| 305 | bool LadspaEffectBase::LoadSettings( |
| 306 | const CommandParameters & parms, EffectSettings &settings) const |
nothing calls this directly
no test coverage detected