AudioData: close() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The **close()** method of the {{domxref("AudioData")}} interface clears all states and releases the reference to the media resource.
Syntax
js-nolint
close()Parameters
None.
Return value
Undefined.
Examples
The following example shows the AudioData object being closed.
js
AudioData.close();Specifications
{{Specifications}}
Browser compatibility
{{Compat}}