| 97 | |
| 98 | |
| 99 | void Module::processBypass(const ProcessArgs& args) { |
| 100 | for (BypassRoute& bypassRoute : bypassRoutes) { |
| 101 | // Route input voltages to output |
| 102 | Input& input = inputs[bypassRoute.inputId]; |
| 103 | Output& output = outputs[bypassRoute.outputId]; |
| 104 | int channels = input.getChannels(); |
| 105 | for (int c = 0; c < channels; c++) { |
| 106 | float v = input.getVoltage(c); |
| 107 | output.setVoltage(v, c); |
| 108 | } |
| 109 | output.setChannels(channels); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | |
| 114 | json_t* Module::toJson() { |
nothing calls this directly
no test coverage detected