Skip to content

Commit

Permalink
[midi] Update libremidi, enable scanning of virtual ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 22, 2024
1 parent c602962 commit 790a5fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/libremidi
6 changes: 5 additions & 1 deletion src/ossia/protocols/midi/midi_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,11 @@ std::vector<midi_info> midi_protocol::scan(libremidi::API api)

std::vector<midi_info> 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);
Expand Down

0 comments on commit 790a5fe

Please sign in to comment.