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

Method enableRoundRobin

hi_scripting/scripting/api/ScriptingApi.cpp:3828–3842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3826}
3827
3828void ScriptingApi::Sampler::enableRoundRobin(bool shouldUseRoundRobin)
3829{
3830 WARN_IF_AUDIO_THREAD(true, ScriptGuard::IllegalApiCall);
3831
3832 ModulatorSampler *s = static_cast<ModulatorSampler*>(sampler.get());
3833
3834 if (s != nullptr)
3835 {
3836 s->setUseRoundRobinLogic(shouldUseRoundRobin);
3837 }
3838 else
3839 {
3840 reportScriptError("enableRoundRobin() only works with Samplers.");
3841 }
3842}
3843
3844void ScriptingApi::Sampler::setActiveGroup(int activeGroupIndex)
3845{

Callers 4

onControlFunction · 0.80
onInitFunction · 0.80
onControlFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected