Expand description
Waveform widget: a realtime audio waveform drawn as one polyline.
This is the pure half of the audio display. waveform_points maps a
buffer of samples to canvas points and is total: any input (NaN, infinity,
out-of-range values, empty buffers, degenerate bounds) yields points that
lie inside the target rectangle. Waveform owns a sample buffer and
paints that path. Capturing samples (microphone, Web Audio) is a separate
concern and not part of this module.
Contract: contracts/present-waveform-path-v1.yaml.
Structs§
- Waveform
- Realtime audio waveform widget.
Constants§
- DEFAULT_
MAX_ POINTS - Default upper bound on the number of points a
Waveformdraws.
Functions§
- waveform_
points - Map audio samples to a polyline inside
bounds.