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

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

The reset() method of the {{domxref("AudioDecoder")}} interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.

Syntax

reset()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Examples

The following example resets the AudioDecoder.

AudioDecoder.reset();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}