| 186 | explicit midi_out_poll_wrapper(output_configuration conf, output_api_configuration api_conf) : python_midi1_callbacks{conf}, impl{this->process(std::move(conf)), std::move(api_conf)} {} |
| 187 | |
| 188 | output_configuration process(output_configuration obs) { |
| 189 | python_midi1_callbacks = obs; |
| 190 | |
| 191 | if (obs.on_error) |
| 192 | obs.on_error = [this](std::string_view errorText, const source_location &) { queue.enqueue(poll_queue::error_message{std::string{errorText}}); }; |
| 193 | if (obs.on_warning) |
| 194 | obs.on_warning = [this](std::string_view errorText, const source_location &) { queue.enqueue(poll_queue::warning_message{std::string{errorText}}); }; |
| 195 | return obs; |
| 196 | } |
| 197 | |
| 198 | void poll() { |
| 199 | poll_queue::midi_out_msg m; |
no outgoing calls
no test coverage detected