Skip to content

Commit

Permalink
Fix was not properly creating ALSA ports from mdns entries
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoreno committed Oct 17, 2024
1 parent 3ef6f42 commit 6883f25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class main_t {
std::shared_ptr<rtpmididns::aseq_t> aseq;
std::optional<rtpmididns::HwAutoAnnounce> hwautoannounce;
rtpmididns::control_socket_t control;
std::optional<rtpmididns::rtpmidi_remote_handler_t> rtpmidi_remote_handler;

public:
// I want setup inside a try catch (and survive it), so I need a setup method
Expand All @@ -77,7 +78,7 @@ class main_t {
control.router = router;
control.aseq = aseq;
control.mdns = rtpmididns::mdns;
rtpmididns::rtpmidi_remote_handler_t rtpmidi_remote_handler(router, aseq);
rtpmidi_remote_handler.emplace(router, aseq);

setup_local_alsa_multilistener();
setup_network_rtpmidi_multilistener();
Expand Down

0 comments on commit 6883f25

Please sign in to comment.