You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./a.out
apis: 1
before opening port: inputs: 1 outputs: 2
after opening port: inputs: 2 outputs: 2
after closing port: inputs: 2 outputs: 2
after opening port: inputs: 2 outputs: 2
(Note that it should NOT increase the input port count.)
This affects our managed bindings too. Basically it messes RtMidiAccess and descendants.
The problem however does not seem to be in RtMidi. I get similar results from PortMidiAccess either. So it's more likely in the underlying layer like ALSA I'm on (Ubuntu 14.04). No idea where the problem lies.
So far, without fixes, things don't get work appropriately (it doesn't for me).
The text was updated successfully, but these errors were encountered:
atsushieno
changed the title
[upstream] opening midi device causes device count inflation
[upstream] RtMidi: opening midi device causes device count inflation
Jan 7, 2018
This is an upstream issue (could be up to ALSA) but the proof of concept issue shows up in RtMidi:
$ g++ -I/devel/include/rtmidi -L/devel/lib testrtmidi.c -lasound -lpthread -lrtmidi
$ ./a.out
apis: 1
before opening port: inputs: 1 outputs: 2
after opening port: inputs: 2 outputs: 2
after closing port: inputs: 2 outputs: 2
after opening port: inputs: 2 outputs: 2
(Note that it should NOT increase the input port count.)
This affects our managed bindings too. Basically it messes RtMidiAccess and descendants.
The problem however does not seem to be in RtMidi. I get similar results from PortMidiAccess either. So it's more likely in the underlying layer like ALSA I'm on (Ubuntu 14.04). No idea where the problem lies.
So far, without fixes, things don't get work appropriately (it doesn't for me).
The text was updated successfully, but these errors were encountered: