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

Fix: panics if AudioContextOptions#sinkId is invalid #545

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

b-ma
Copy link
Collaborator

@b-ma b-ma commented Jan 12, 2025

cf. https://webaudio.github.io/web-audio-api/#validating-sink-identifier - step 4.

It's indeed a little change in the API but that is the spec and the behaviour that is actually documented.
I guess it's ok as it doesn't break builds, but only raise a clippy warning eventually?

@orottier
Copy link
Owner

Thanks! Let's consider this a bugfix/behavioural change, not an API change (as the function call remains the same). I will put in a next minor release.

@orottier orottier merged commit 03df7e1 into orottier:main Jan 13, 2025
3 checks passed
@b-ma b-ma deleted the fix/invalid_sink_id branch January 13, 2025 12:24
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