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

Method outputData

src/audio_decoder.ts:199–211  ·  view source on GitHub ↗
(currentConfigId: number)

Source from the content-addressed store, hash-verified

197 }
198
199 private outputData(currentConfigId: number) {
200 if (this.currentConfigId !== currentConfigId) {
201 return;
202 }
203
204 const clone = this.frame.clone();
205 if (!clone) {
206 throw new Error('Error obtaining frame clone.');
207 }
208
209 const audioData = new AudioDataPolyfill(clone);
210 this.init.output(audioData);
211 }
212
213 private decrementQueue() {
214 this._decodeQueueSize = Math.max(this._decodeQueueSize - 1, 0);

Callers 2

decodeInternalMethod · 0.95
flushInternalMethod · 0.95

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected