Files
ladybird/Tests/LibWeb/Text/expected/WebAudio/OscillatorNode.txt
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

15 lines
725 B
Plaintext

OscillatorNode
AudioScheduledSourceNode
AudioNode
EventTarget
Object
context: '[object OfflineAudioContext], is same as original: true
Error creating node: 'InvalidStateError: Oscillator node type cannot be set to 'custom''
oscillator node type: 'sine'
Error: 'InvalidStateError: Oscillator node type cannot be set to 'custom'', type is: sine
oscillator node type: 'triangle'
[object AudioParam] current: 440, default: 440, min: -22050, max: 22050, rate: a-rate
[object AudioParam] current: -52, default: 440, min: -22050, max: 22050, rate: a-rate
[object AudioParam] current: 22050, default: 440, min: -22050, max: 22050, rate: a-rate
[object AudioParam] current: -22050, default: 440, min: -22050, max: 22050, rate: a-rate