| 246 | } |
| 247 | |
| 248 | OptionalMessage |
| 249 | VSTEffectBase::LoadFactoryPreset(int id, EffectSettings& settings) const |
| 250 | { |
| 251 | // To do: externalize state so const_cast isn't needed |
| 252 | bool loadOK = const_cast<VSTEffectBase*>(this)->DoLoadFactoryPreset(id) && |
| 253 | FetchSettings(GetSettings(settings)); |
| 254 | if (!loadOK) |
| 255 | return {}; |
| 256 | return MakeMessageFS( |
| 257 | VSTInstance::GetSettings(settings)); |
| 258 | } |
| 259 | |
| 260 | bool VSTEffectBase::DoLoadFactoryPreset(int id) |
| 261 | { |
nothing calls this directly
no test coverage detected