AudioEncoder: reset() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{securecontext_header}}{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

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

Syntax

js-nolint
reset()

Parameters

None.

Return value

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

Examples

The following example resets the AudioEncoder.

js
AudioEncoder.reset();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}