web api instance method
AudioData: clone() method
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
InvalidStateErrorDOMException- : Thrown if the
AudioDataobject has been transferred.
- : Thrown if the
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.