Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to detect closed port (ALSA?) #61

Closed
thebne opened this issue Apr 5, 2020 · 1 comment
Closed

No way to detect closed port (ALSA?) #61

thebne opened this issue Apr 5, 2020 · 1 comment

Comments

@thebne
Copy link

thebne commented Apr 5, 2020

First of all, thank you for the great package. I'm using it through mido.

It seems like I can't get notified once the port is closed (physically - the piano turned off, the USB is unplugged etc.).
It's important because once it reconnects I don't see any new events until I reinitialize the port.

It might be an ALSA problem - I'm running with ALSA and Ubuntu 18.04.
Tried using set_error_callback() and checking is_port_open(), didn't seem to change much.
I wouldn't mind polling/running select() on the USB port. I just don't find a reference to any fp I could use.

Any help here? :)

@thebne
Copy link
Author

thebne commented Apr 5, 2020

I investigated further and realized it's an ALSA problem :( nevermind, thank you!
thestk/rtmidi#191

@thebne thebne closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant