MCPcopy Create free account
hub / github.com/celtera/libremidi / process

Method process

bindings/python/pylibremidi.cpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

midi_out_poll_wrapperMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected