MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / Engine_refreshParamHandleCache

Function Engine_refreshParamHandleCache

src/override/Engine.cpp:478–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476
477
478static void Engine_refreshParamHandleCache(Engine* that) {
479 // Clear cache
480 that->internal->paramHandlesCache.clear();
481 // Add active ParamHandles to cache
482 for (ParamHandle* paramHandle : that->internal->paramHandles) {
483 if (paramHandle->moduleId >= 0) {
484 that->internal->paramHandlesCache[std::make_tuple(paramHandle->moduleId, paramHandle->paramId)] = paramHandle;
485 }
486 }
487}
488
489
490Engine::Engine() {

Callers 2

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected