Skip to content

Why does web_sys::AudioBuffer::copy_to_channel* need a mutable buffer argument? #2434

Closed
@kerskuchen

Description

@kerskuchen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions