web: Rename copy_to_audio_buffer to copyToAudioBuffer
This commit is contained in:
parent
68ffc95348
commit
5b5091b4b9
|
@ -6,7 +6,7 @@
|
||||||
* Copies data into the given audio channel.
|
* Copies data into the given audio channel.
|
||||||
* This is necessary because Safari does not support `AudioBuffer.copyToChannel`.
|
* This is necessary because Safari does not support `AudioBuffer.copyToChannel`.
|
||||||
*/
|
*/
|
||||||
export function copy_to_audio_buffer(
|
export function copyToAudioBuffer(
|
||||||
audio_buffer: AudioBuffer,
|
audio_buffer: AudioBuffer,
|
||||||
left_data: ArrayLike<number>,
|
left_data: ArrayLike<number>,
|
||||||
right_data: ArrayLike<number>
|
right_data: ArrayLike<number>
|
||||||
|
|
|
@ -846,6 +846,7 @@ extern "C" {
|
||||||
/// Imported JS method to copy data into an `AudioBuffer`.
|
/// Imported JS method to copy data into an `AudioBuffer`.
|
||||||
/// We'd prefer to use `AudioBuffer.copyToChannel`, but this isn't supported
|
/// We'd prefer to use `AudioBuffer.copyToChannel`, but this isn't supported
|
||||||
/// on Safari.
|
/// on Safari.
|
||||||
|
#[wasm_bindgen(js_name = "copyToAudioBuffer")]
|
||||||
fn copy_to_audio_buffer(
|
fn copy_to_audio_buffer(
|
||||||
audio_buffer: &web_sys::AudioBuffer,
|
audio_buffer: &web_sys::AudioBuffer,
|
||||||
left_data: Option<&[f32]>,
|
left_data: Option<&[f32]>,
|
||||||
|
|
Loading…
Reference in New Issue