Skip to content

AudioBuffer

Values

copyFromChannel

let copyFromChannel: (
WebAPI.WebAudioAPI.audioBuffer,
~destination: array<float>,
~channelNumber: int,
~bufferOffset: int=?,
) => unit

Parameters

WebAPI.WebAudioAPI.audioBuffer array< float > int option< int >

Return type

unit

copyToChannel

let copyToChannel: (
WebAPI.WebAudioAPI.audioBuffer,
~source: array<float>,
~channelNumber: int,
~bufferOffset: int=?,
) => unit

Parameters

WebAPI.WebAudioAPI.audioBuffer array< float > int option< int >

Return type

unit

getChannelData

let getChannelData: (WebAPI.WebAudioAPI.audioBuffer, int) => array<float>

Parameters

WebAPI.WebAudioAPI.audioBuffer int

Return type

array< float >

make

let make: WebAPI.WebAudioAPI.audioBufferOptions => WebAPI.WebAudioAPI.audioBuffer