MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / decrementQueue

Method decrementQueue

src/audio_decoder.ts:213–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 }
212
213 private decrementQueue() {
214 this._decodeQueueSize = Math.max(this._decodeQueueSize - 1, 0);
215
216 // Spec: Schedule Dequeue Event
217 queueMicrotask(() => {
218 const event = new Event('dequeue');
219 this.ondequeue?.bind(this)(event);
220 this.dispatchEvent(event);
221 });
222 }
223
224 private async decodeInternal(chunk: EncodedAudioChunk) {
225 const currentConfigId = this.currentConfigId;

Callers 3

decodeInternalMethod · 0.95
closeMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected