Firefox Tomorrow

web api instance method

AudioData: clone() method

View on MDN ↗

Available in workers

The clone() method of the AudioData interface creates a new AudioData object with reference to the same media resource as the original.

Syntax

clone()

Parameters

None.

Return value

The cloned AudioData object.

Exceptions

Examples

The following example clones a copy of AudioData as audioData2.

let audioData2 = AudioData.clone();

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.