| 446 | // Channel volume control |
| 447 | |
| 448 | void setChannelVolume(ChannelId channel, int32_t volume) |
| 449 | { |
| 450 | _channelVolumes[static_cast<size_t>(channel)] = volume; |
| 451 | |
| 452 | for (auto& inst : _instances) |
| 453 | { |
| 454 | if (inst.active && (channel == ChannelId::master || inst.channel == channel)) |
| 455 | { |
| 456 | applyVolume(inst); |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | int32_t getChannelVolume(ChannelId channel) |
| 462 | { |
no test coverage detected