| 74 | } |
| 75 | |
| 76 | std::string_view CSoundChipService::GetChannelShortName(stChannelID ch) const { |
| 77 | for (auto &x : types_) |
| 78 | if (x.first == ch.Chip) |
| 79 | return x.second->GetChannelShortName(ch.Subindex); |
| 80 | throw std::invalid_argument {"Channel with given ID does not exist"}; |
| 81 | } |
| 82 | |
| 83 | std::string_view CSoundChipService::GetChannelFullName(stChannelID ch) const { |
| 84 | for (auto &x : types_) |