MCPcopy Create free account
hub / github.com/VCVRack/Rack / configInput

Method configInput

include/engine/Module.hpp:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 */
177 template <class TPortInfo = PortInfo>
178 TPortInfo* configInput(int portId, std::string name = "") {
179 assert(portId < (int) inputs.size() && portId < (int) inputInfos.size());
180 if (inputInfos[portId])
181 delete inputInfos[portId];
182
183 TPortInfo* info = new TPortInfo;
184 info->PortInfo::module = this;
185 info->PortInfo::type = Port::INPUT;
186 info->PortInfo::portId = portId;
187 info->PortInfo::name = name;
188 inputInfos[portId] = info;
189 return info;
190 }
191
192 /** Helper for creating a PortInfo for an output port and setting its properties.
193 See PortInfo for documentation of arguments.

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected