| 4711 | } |
| 4712 | |
| 4713 | void ScriptingApi::Sampler::setReleaseStartOptions(var data) |
| 4714 | { |
| 4715 | #if HISE_SAMPLER_ALLOW_RELEASE_START |
| 4716 | ModulatorSampler* s = dynamic_cast<ModulatorSampler*>(sampler.get()); |
| 4717 | |
| 4718 | if (s == nullptr) |
| 4719 | reportScriptError("Invalid sampler call"); |
| 4720 | |
| 4721 | StreamingHelpers::ReleaseStartOptions::Ptr newOptions = new StreamingHelpers::ReleaseStartOptions(); |
| 4722 | |
| 4723 | newOptions->fromJSON(data); |
| 4724 | |
| 4725 | s->getSampleMap()->setReleaseStartOptions(newOptions); |
| 4726 | #else |
| 4727 | reportScriptError("HISE_SAMPLER_ALLOW_RELEASE_START is not enabled"); |
| 4728 | #endif |
| 4729 | } |
| 4730 | |
| 4731 | String ScriptingApi::Sampler::getAudioWaveformContentAsBase64(var presetObj) |
| 4732 | { |
no test coverage detected