| 1105 | |
| 1106 | |
| 1107 | Cable* Engine::getCable(int64_t cableId) { |
| 1108 | if (cableId < 0) |
| 1109 | return NULL; |
| 1110 | SharedLock<SharedMutex> lock(internal->mutex); |
| 1111 | auto it = internal->cablesCache.find(cableId); |
| 1112 | if (it == internal->cablesCache.end()) |
| 1113 | return NULL; |
| 1114 | return it->second; |
| 1115 | } |
| 1116 | |
| 1117 | |
| 1118 | void Engine::setParamValue(Module* module, int paramId, float value) { |