Shannon Booth
52be4925bc
WebAudio: Avoid throwing exception for stubbed setValueAtTime
...
Instead, just log an error and continue on gracefully, returning an
instance of ourselves as spec'd.
2024-07-24 11:14:46 +02:00
Shannon Booth
94354ea7fb
LibWeb: Clamp AudioParam's value between min and max
...
The spec isn't _super_ clear on how this is meant to be done, but the
way I understand this is that we should simply clamp the returned
'current value' between 'min' and 'max'.
Firefox does not appear to do this clamping, but Chrome does.
2024-05-04 14:01:38 +02:00
Shannon Booth
e2b5ff2450
LibWeb: Implement OscillatorNode.frequency
...
Which is an AudioParam clamped by the nyquist_frequency.
2024-05-04 14:01:38 +02:00
Shannon Booth
5ae0ac7b73
LibWeb: Add stub IDL interface for AudioParam
...
An AudioParam is a fundamental building block in WebAudio as it controls
the value of an individual parameter of an AudioNode, such as volume.
2024-05-02 07:49:23 +02:00