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

Better error if frames/channels are non-integers #565

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

mgeier
Copy link
Member

@mgeier mgeier commented Oct 12, 2024

Resolves #564.

An eventual type error for dtype is not handled here, because I think the original error message is good enough:

TypeError: Cannot interpret ... as a data type

Copy link

@288bb 288bb left a comment

Choose a reason for hiding this comment

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

Perfect, this will help all users of sounddevice identify errors when using sd.rec().

@mgeier mgeier merged commit f37a6ef into spatialaudio:master Oct 15, 2024
14 checks passed
@mgeier mgeier deleted the check-frames-channels-integer branch October 15, 2024 17:43
@mgeier
Copy link
Member Author

mgeier commented Oct 15, 2024

Thanks for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants