reset

fun reset()(source)

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

MDN Reference