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

Remove CoreAudio device disconnect listener when closing input mode streams #417

Merged

Conversation

mikedickey
Copy link
Contributor

The flag handle->disconnectListenerAdded[0] is never set to true for input mode streams because the probeOpenStream() code uses handle->disconnectListenerAdded[mode].

This causes RtAudio to never remove device disconnect listeners, which can cause the listener slots to fill up and an "illegal instruction" error code to be returned when you try to add a new one.

…treams

The flag handle->disconnectListenerAdded[0] is never set to true for input
mode streams because the probeOpenStream() code uses
handle->disconnectListenerAdded[mode].

This causes RtAudio to never remove device disconnect listeners, which can
cause the listener slots to fill up and an "illegal instruction" error code
to be returned when you try to add a new one.
mikedickey added a commit to jacktrip/jacktrip that referenced this pull request Jan 11, 2024
@garyscavone garyscavone merged commit f2135b7 into thestk:master Jan 11, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants