| 3826 | } |
| 3827 | |
| 3828 | void 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 | |
| 3844 | void ScriptingApi::Sampler::setActiveGroup(int activeGroupIndex) |
| 3845 | { |
no test coverage detected