MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / getGain

Method getGain

Components/PanoramicDialog.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132SUFLOAT
133PanoramicDialogConfig::getGain(
134 std::string const &dev,
135 std::string const &name) const
136{
137 std::string fullName = "gain." + dev + "." + name;
138
139 if (this->gains.find(fullName) == this->gains.cend())
140 return 0;
141
142 return this->gains.at(fullName);
143}
144
145void
146PanoramicDialogConfig::setGain(

Callers 1

refreshGainsMethod · 0.45

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected