web: Rename copy_to_audio_buffer to copyToAudioBuffer

This commit is contained in:
Nathan Adams 2020-11-16 23:59:51 +01:00 committed by Mike Welsh
parent 68ffc95348
commit 5b5091b4b9
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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]>,