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

Added "NoDevice" to the list of Portaudio errors #160

Merged
merged 1 commit into from
Oct 2, 2017
Merged

Added "NoDevice" to the list of Portaudio errors #160

merged 1 commit into from
Oct 2, 2017

Conversation

JWorthe
Copy link
Contributor

@JWorthe JWorthe commented Oct 1, 2017

This is the error that portaudio returns if you ask for the default
device, but the system doesn't have a default device.

Before this change, Portaudio returning NoDevice would result in a
panic. Now, it will result in the new error being returned.

I also updated the examples to avoid panicking, and rather print the
error message and exit gracefully.

#142

This is the error that portaudio returns if you ask for the default
device, but the system doesn't have a default device.

Before this change, Portaudio returning NoDevice would result in a
panic. Now, it will result in the new error being returned.

I also updated the examples to avoid panicking, and rather print the
error message and exit gracefully.

Related: #142
Copy link
Member

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

@mitchmindtree mitchmindtree merged commit 0b45644 into RustAudio:master Oct 2, 2017
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