Skip to content
Discussion options

You must be logged in to vote

hello!

You can pass an observer_configuration object to the libremidi::observer instance with only track_virtual set:

uint32_t track_virtual : 1 = false;

alternatively, when you list ports with observers, they have the "flags" member which indicates the "kind" of port (if the API provides this information):

https://github.com/celtera/libremidi/blob/master/include/libremidi/observer_configuration.hpp#L27

you need to test like this:

 const port_information& p; 
 if(p.type & port_type::software) { ... }

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dr3f-tools
Comment options

You must be logged in to vote
2 replies
@jcelerier
Comment options

@jcelerier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants