| 5969 | |
| 5970 | |
| 5971 | ScriptingObjects::ScriptingTableProcessor *ScriptingApi::Synth::getTableProcessor(const String &name) |
| 5972 | { |
| 5973 | WARN_IF_AUDIO_THREAD(true, ScriptGuard::ObjectCreation); |
| 5974 | |
| 5975 | if (getScriptProcessor()->objectsCanBeCreated()) |
| 5976 | { |
| 5977 | Processor::Iterator<ExternalDataHolder> it(owner); |
| 5978 | |
| 5979 | while (auto lut = it.getNextProcessor()) |
| 5980 | { |
| 5981 | if (dynamic_cast<Processor*>(lut)->getId() == name) |
| 5982 | { |
| 5983 | return new ScriptTableProcessor(getScriptProcessor(), lut); |
| 5984 | } |
| 5985 | } |
| 5986 | |
| 5987 | reportScriptError(name + " was not found. "); |
| 5988 | RETURN_IF_NO_THROW(new ScriptTableProcessor(getScriptProcessor(), nullptr)); |
| 5989 | } |
| 5990 | else |
| 5991 | { |
| 5992 | reportIllegalCall("getScriptingTableProcessor()", "onInit"); |
| 5993 | RETURN_IF_NO_THROW(new ScriptTableProcessor(getScriptProcessor(), nullptr)); |
| 5994 | } |
| 5995 | } |
| 5996 | |
| 5997 | hise::ScriptingApi::Synth::ScriptSliderPackProcessor* ScriptingApi::Synth::getSliderPackProcessor(const String& name) |
| 5998 | { |
nothing calls this directly
no test coverage detected