-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Why does web_sys::AudioBuffer::copy_to_channel*
need a mutable buffer argument?
#2434
Labels
Comments
There's a whitelist of functions which are known to not need mutable slices, and it looks like this isn't on that list. |
Ah thanks for the clarification. I will try make a PR then to fix this. |
kerskuchen
added a commit
to kerskuchen/wasm-bindgen
that referenced
this issue
Jan 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I hope this is the correct place to ask this. Currently I am slightly confused as to why the APIs
web_sys::AudioBuffer::copy_to_channel
https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.AudioBuffer.html#method.copy_to_channel
and
web_sys::AudioBuffer::copy_to_channel_with_start_in_channel
https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.AudioBuffer.html#method.copy_to_channel_with_start_in_channel
need their first argument (the source buffer to be copied from) to be mutable.
Additional Details
https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel
The text was updated successfully, but these errors were encountered: