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

Method decrementQueue

src/audio_encoder.ts:323–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321 }
322
323 private decrementQueue() {
324 this._encodeQueueSize = Math.max(this._encodeQueueSize - 1, 0);
325
326 // Spec: Schedule Dequeue Event
327 queueMicrotask(() => {
328 const event = new Event('dequeue');
329 this.ondequeue?.bind(this)(event);
330 this.dispatchEvent(event);
331 });
332 }
333
334 private async encodeInternal(clonedData: AudioData) {
335 const currentConfigId = this.currentConfigId;

Callers 3

encodeInternalMethod · 0.95
closeMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected