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

Method getContent

hi_scripting/scripting/api/ScriptingApiObjects.cpp:1601–1612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1599}
1600
1601var ScriptingObjects::ScriptAudioFile::getContent()
1602{
1603 Array<var> channels;
1604
1605 if (auto buffer = getBuffer())
1606 {
1607 for (int i = 0; i < buffer->getBuffer().getNumChannels(); i++)
1608 channels.add(buffer->getChannelBuffer(i, false));
1609 }
1610
1611 return channels;
1612}
1613
1614float ScriptingObjects::ScriptAudioFile::getCurrentlyDisplayedIndex() const
1615{

Callers 4

rebuildMethod · 0.45
rebuildAndRecompileMethod · 0.45
createNewComponentMethod · 0.45

Calls 4

getChannelBufferMethod · 0.80
getNumChannelsMethod · 0.45
getBufferMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected