MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / constructor

Method constructor

src/audio_worklet.js:269–280  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

267// to the audio graph to do any audio processing.
268class BootstrapMessages extends AudioWorkletProcessor {
269 constructor(arg) {
270 super();
271 startWasmWorker(arg.processorOptions)
272 // Listen to messages from the main thread. These messages will ask this
273 // scope to create the real AudioWorkletProcessors that call out to Wasm to
274 // do audio processing.
275 if (!(port instanceof MessagePort)) {
276 this.port.onmessage = port.onmessage;
277 /** @suppress {checkTypes} */
278 port = this.port;
279 }
280 }
281
282 // No-op, not doing audio processing in this processor. It is just for
283 // receiving bootstrap messages. However browsers require it to still be

Callers

nothing calls this directly

Calls 1

startWasmWorkerFunction · 0.85

Tested by

no test coverage detected