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

Function Engine_updateExpander_NoLock

src/override/Engine.cpp:119–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119static void Engine_updateExpander_NoLock(Engine* that, Module* module, bool side) {
120 Module::Expander& expander = side ? module->rightExpander : module->leftExpander;
121 Module* oldExpanderModule = expander.module;
122
123 if (expander.moduleId >= 0) {
124 if (!expander.module || expander.module->id != expander.moduleId) {
125 expander.module = that->getModule_NoLock(expander.moduleId);
126 }
127 }
128 else {
129 if (expander.module) {
130 expander.module = NULL;
131 }
132 }
133
134 if (expander.module != oldExpanderModule) {
135 // Dispatch ExpanderChangeEvent
136 Module::ExpanderChangeEvent e;
137 e.side = side;
138 module->onExpanderChange(e);
139 }
140}
141
142
143static void Cable_step(Cable* that) {

Callers 1

stepBlockMethod · 0.85

Calls 1

getModule_NoLockMethod · 0.80

Tested by

no test coverage detected