| 4516 | } |
| 4517 | |
| 4518 | var ScriptingObjects::ScriptingAudioSampleProcessor::getAudioFile(int slotIndex) |
| 4519 | { |
| 4520 | if (checkValidObject()) |
| 4521 | { |
| 4522 | if (auto ed = dynamic_cast<ProcessorWithExternalData*>(audioSampleProcessor.get())) |
| 4523 | return var(new ScriptAudioFile(getScriptProcessor(), slotIndex, ed)); |
| 4524 | } |
| 4525 | |
| 4526 | reportScriptError("Not a valid object"); |
| 4527 | RETURN_IF_NO_THROW(var()); |
| 4528 | } |
| 4529 | |
| 4530 | int ScriptingObjects::ScriptingAudioSampleProcessor::getSampleLength() const |
| 4531 | { |
no test coverage detected