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

Method getNumInputs

src/audio.cpp:296–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296int Port::getNumInputs() {
297 if (!device)
298 return 0;
299 try {
300 return math::clamp(device->getNumInputs() - inputOffset, 0, maxInputs);
301 }
302 catch (Exception& e) {
303 WARN("Audio port could not get device number of inputs: %s", e.what());
304 return 0;
305 }
306}
307
308int Port::getNumOutputs() {
309 if (!device)

Callers 1

stepMethod · 0.45

Calls 2

whatMethod · 0.80
clampFunction · 0.70

Tested by

no test coverage detected