copyFromChannel method

void copyFromChannel(
  1. JSFloat32Array destination,
  2. int channelNumber, [
  3. int bufferOffset
])

The copyFromChannel() method of the AudioBuffer interface copies the audio sample data from the specified channel of the AudioBuffer to a specified Float32Array.

Implementation

external void copyFromChannel(
  JSFloat32Array destination,
  int channelNumber, [
  int bufferOffset,
]);