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

Function getDriver

src/midi.cpp:491–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491Driver* getDriver(int driverId) {
492 // Search for driver by ID
493 for (auto& pair : drivers) {
494 if (pair.first == driverId)
495 return pair.second;
496 }
497 return NULL;
498}
499
500
501} // namespace midi

Callers 3

setDriverIdMethod · 0.70
appendMidiDriverMenuFunction · 0.50
appendAudioDriverMenuFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected