MCPcopy Create free account
hub / github.com/VCVRack/Befaco / findHostModulePtr

Method findHostModulePtr

src/Muxlicer.cpp:1087–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085 }
1086
1087 Muxlicer* findHostModulePtr(Module* module) {
1088 if (module) {
1089 if (module->leftExpander.module) {
1090 // if it's Muxlicer, we're done
1091 if (module->leftExpander.module->model == modelMuxlicer) {
1092 return reinterpret_cast<Muxlicer*>(module->leftExpander.module);
1093 }
1094 // if it's Mex, keep recursing
1095 else if (module->leftExpander.module->model == modelMex) {
1096 return findHostModulePtr(module->leftExpander.module);
1097 }
1098 }
1099 }
1100
1101 return nullptr;
1102 }
1103
1104 void process(const ProcessArgs& args) override {
1105

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected