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

Method getNumOutputs

src/audio.cpp:308–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308int Port::getNumOutputs() {
309 if (!device)
310 return 0;
311 try {
312 return math::clamp(device->getNumOutputs() - outputOffset, 0, maxOutputs);
313 }
314 catch (Exception& e) {
315 WARN("Audio port could not get device number of outputs: %s", e.what());
316 return 0;
317 }
318}
319
320json_t* Port::toJson() {
321 json_t* rootJ = json_object();

Callers 1

stepMethod · 0.45

Calls 2

whatMethod · 0.80
clampFunction · 0.70

Tested by

no test coverage detected