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

Method getSampleLength

hi_scripting/scripting/api/ScriptingApiObjects.cpp:4530–4537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4528}
4529
4530int ScriptingObjects::ScriptingAudioSampleProcessor::getSampleLength() const
4531{
4532 if (checkValidObject())
4533 {
4534 return dynamic_cast<ProcessorWithExternalData*>(audioSampleProcessor.get())->getAudioFile(0)->getCurrentRange().getLength();
4535 }
4536 else return 0;
4537}
4538
4539// ScriptingTableProcessor ==============================================================================================================
4540

Callers 4

previewSampleFromDiskMethod · 0.45
preStartVoiceMethod · 0.45
checkSampleSizeMethod · 0.45

Calls 4

getCurrentRangeMethod · 0.80
getLengthMethod · 0.45
getAudioFileMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected