(arg)
| 267 | // to the audio graph to do any audio processing. |
| 268 | class 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 |
nothing calls this directly
no test coverage detected