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

Method lookupGain

Default/Source/SourceWidget.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240
241DeviceGain *
242SourceWidget::lookupGain(std::string const &name)
243{
244 // Why is this? Use a map instead.
245 for (auto p = this->gainControls.begin();
246 p != this->gainControls.end();
247 ++p) {
248 if ((*p)->getName() == name)
249 return *p;
250 }
251
252 return nullptr;
253}
254
255void
256SourceWidget::clearGains(void)

Callers 2

tryApplyGainsMethod · 0.95
applyCurrentAutogainMethod · 0.95

Calls 3

beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected