Skip to content

Commit

Permalink
LibreMidiAccess: override supportsUmpTransport.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Sep 2, 2024
1 parent 6e931e9 commit f508f17
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ class LibreMidiAccess(private val api: Int) : MidiAccess() {
}
}

override val supportsUmpTransport = when (api) {
API.WindowsMidiServices, API.CoreMidiUmp, API.AlsaSeqUmp, API.AlsaRawUmp -> true
else -> false
}

private val observerConfig = libremidi_observer_configuration().also {
library.libremidi_midi_observer_configuration_init(it)
it.track_virtual(true)
Expand Down

0 comments on commit f508f17

Please sign in to comment.