| 3444 | }; |
| 3445 | |
| 3446 | ScriptingObjects::ScriptingSlotFX::ScriptingSlotFX(ProcessorWithScriptingContent *p, EffectProcessor *fx) : |
| 3447 | ConstScriptingObject(p, fx != nullptr ? fx->getNumParameters()+1 : 1), |
| 3448 | slotFX(fx) |
| 3449 | { |
| 3450 | if (fx != nullptr) |
| 3451 | { |
| 3452 | setName(fx->getId()); |
| 3453 | |
| 3454 | addScriptParameters(this, slotFX.get()); |
| 3455 | |
| 3456 | for (int i = 0; i < fx->getNumParameters(); i++) |
| 3457 | { |
| 3458 | addConstant(fx->getIdentifierForParameterIndex(i).toString(), var(i)); |
| 3459 | } |
| 3460 | } |
| 3461 | else |
| 3462 | { |
| 3463 | setName("Invalid Effect"); |
| 3464 | } |
| 3465 | |
| 3466 | ADD_API_METHOD_1(setEffect); |
| 3467 | ADD_API_METHOD_0(getCurrentEffect); |
| 3468 | ADD_API_METHOD_0(clear); |
| 3469 | ADD_API_METHOD_1(swap); |
| 3470 | ADD_API_METHOD_0(getModuleList); |
| 3471 | ADD_API_METHOD_0(getParameterProperties); |
| 3472 | ADD_API_METHOD_0(getCurrentEffectId); |
| 3473 | }; |
| 3474 | |
| 3475 | |
| 3476 |
nothing calls this directly
no test coverage detected