Note: This feature is available in Dedicated Web Workers.
The clone() method of the AudioData interface creates a new AudioData object with reference to the same media resource as the original.
clone()None.
The cloned AudioData object.
InvalidStateError DOMExceptionThrown if the AudioData object has been transferred.
The following example clones a copy of AudioData as audioData2.
let audioData2 = AudioData.clone();