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

Function getDriver

src/audio.cpp:408–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408Driver* getDriver(int driverId) {
409 if (driverId == -1)
410 return NULL;
411 // Search for driver by ID
412 for (auto& pair : drivers) {
413 if (pair.first == driverId)
414 return pair.second;
415 }
416 return NULL;
417}
418
419
420} // namespace audio

Callers 1

setDriverIdMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected