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

Method getDevice

src/midiloopback.cpp:86–93  ·  view source on GitHub ↗

Custom methods

Source from the content-addressed store, hash-verified

84
85 // Custom methods
86 Device* getDevice(int deviceId) {
87 if (!APP->midiLoopbackContext)
88 return NULL;
89 if (!(0 <= deviceId && (size_t) deviceId < NUM_DEVICES))
90 return NULL;
91 Context* context = APP->midiLoopbackContext;
92 return context->devices[deviceId];
93 }
94};
95
96

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected