MCPcopy Create free account
hub / github.com/christophhart/HISE / getAudioFile

Method getAudioFile

hi_scripting/scripting/api/ScriptingApiObjects.cpp:4518–4528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4516}
4517
4518var 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
4530int ScriptingObjects::ScriptingAudioSampleProcessor::getSampleLength() const
4531{

Callers 5

setFileMethod · 0.45
getFilenameMethod · 0.45
getSampleStartMethod · 0.45
setSampleRangeMethod · 0.45
getSampleLengthMethod · 0.45

Calls 2

varFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected