mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibWeb: Implement OscillatorNode.type
This is a simple getter and setter of the OscillatorType enum, with error checking to not allow 'custom', as that should only be changed through 'setPeriodicWave()'.
This commit is contained in:
parent
b48ba823b9
commit
099c9e4a7e
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/shannonbooth
Commit: 099c9e4a7e
Pull-request: https://github.com/SerenityOS/serenity/pull/24195
5 changed files with 61 additions and 2 deletions
|
@ -22,7 +22,7 @@ dictionary OscillatorOptions : AudioNodeOptions {
|
|||
[Exposed=Window]
|
||||
interface OscillatorNode : AudioScheduledSourceNode {
|
||||
constructor(BaseAudioContext context, optional OscillatorOptions options = {});
|
||||
// FIXME: attribute OscillatorType type;
|
||||
attribute OscillatorType type;
|
||||
// FIXME: readonly attribute AudioParam frequency;
|
||||
// FIXME: readonly attribute AudioParam detune;
|
||||
// FIXME: undefined setPeriodicWave(PeriodicWave periodicWave);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue