A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/copyTo below:

EncodedAudioChunk: copyTo() method - Web APIs

EncodedAudioChunk: copyTo() method

Limited availability

Note: This feature is available in Dedicated Web Workers.

The copyTo() method of the EncodedAudioChunk interface copies the encoded chunk of audio data.

Syntax Parameters
destination

An ArrayBuffer, a TypedArray, or a DataView that the data can be copied to.

Return value

None (undefined).

Examples

In the following example an EncodedAudioChunk is created then copied.

const init = {
  type: "key",
  data: audioBuffer,
  timestamp: 23000000,
  duration: 2000000,
};
const chunk = new EncodedAudioChunk(init);

chunk.copyTo(newBuffer);
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4