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

Method step

src/app/AudioDisplay.cpp:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void AudioDriverChoice::step() {
57 text = "";
58 if (box.size.x >= 200.0)
59 text += string::translate("AudioDisplay.driver");
60 audio::Driver* driver = port ? port->getDriver() : NULL;
61 std::string driverName = driver ? driver->getName() : "";
62 if (driverName != "") {
63 text += driverName;
64 color.a = 1.0;
65 }
66 else {
67 text += "(" + string::translate("AudioDisplay.noDriver") + ")";
68 color.a = 0.5;
69 }
70}
71
72struct AudioDriverItem : ui::MenuItem {
73 audio::Port* port;

Callers

nothing calls this directly

Calls 10

translateFunction · 0.85
getDetailTemplateFunction · 0.85
fFunction · 0.50
getDriverMethod · 0.45
getNameMethod · 0.45
getDeviceMethod · 0.45
getNumInputsMethod · 0.45
getNumOutputsMethod · 0.45
getSampleRateMethod · 0.45
getBlockSizeMethod · 0.45

Tested by

no test coverage detected