Back to main

Sending the output of an AudioWorkletProcessor to a Worker

An AudioWorkletProcessor generates or receives audio data. It writes to a ring buffer. The consumer of the ring buffer is running in a Web Worker, and this Worker buffers the input audio data.

After playing a bit of audio and stopping, a wav file of the recording can be downloaded.

While this is running, this page artificially loads the main thread to simulate an heavy Web app front-end.