From 790a5febd12c5fb841aa43a78a90c99e17e8a0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 21 Aug 2024 21:11:08 -0400 Subject: [PATCH] [midi] Update libremidi, enable scanning of virtual ports --- 3rdparty/libremidi | 2 +- src/ossia/protocols/midi/midi_protocol.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/3rdparty/libremidi b/3rdparty/libremidi index 22d8697f1d2..175c8aa83be 160000 --- a/3rdparty/libremidi +++ b/3rdparty/libremidi @@ -1 +1 @@ -Subproject commit 22d8697f1d23e5cb715f69351d8133765df24343 +Subproject commit 175c8aa83be1145c87f36437c8ff759d09a3b1de diff --git a/src/ossia/protocols/midi/midi_protocol.cpp b/src/ossia/protocols/midi/midi_protocol.cpp index ef0f9c151b8..1990c6177d4 100644 --- a/src/ossia/protocols/midi/midi_protocol.cpp +++ b/src/ossia/protocols/midi/midi_protocol.cpp @@ -746,7 +746,11 @@ std::vector midi_protocol::scan(libremidi::API api) std::vector vec; - libremidi::observer in{{}, libremidi::observer_configuration_for(api)}; + libremidi::observer_configuration conf{}; + conf.track_hardware = true; + conf.track_virtual = true; + + libremidi::observer in{conf, libremidi::observer_configuration_for(api)}; for(auto& port : in.get_input_ports()) vec.emplace_back(port, false);