Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/api/audiodata/close/index.md
6552 views
---
title: AudioData.close() slug: Web/API/AudioData/close page-type: web-api-instance-method status: - experimental browser-compat: api.AudioData.close
---

{{APIRef("WebCodecs API")}}{{SeeCompatTable}}

The close() method of the {{domxref("AudioData")}} interface clears all states and releases the reference to the media resource.

Syntax

close()

Parameters

None.

Return value

Undefined.

Examples

The following example shows the AudioData object being closed.

AudioData.close();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}