| 757 | } |
| 758 | |
| 759 | DeviceGain * |
| 760 | PanoramicDialog::lookupGain(std::string const &name) |
| 761 | { |
| 762 | // Why is this? Use a map instead. |
| 763 | for (auto p = this->gainControls.begin(); |
| 764 | p != this->gainControls.end(); |
| 765 | ++p) { |
| 766 | if ((*p)->getName() == name) |
| 767 | return *p; |
| 768 | } |
| 769 | |
| 770 | return nullptr; |
| 771 | } |
| 772 | |
| 773 | void |
| 774 | PanoramicDialog::clearGains(void) |