mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
These no longer serve any purpose now that we run the IDLGenerator on all of these files at once.
27 lines
794 B
Plaintext
27 lines
794 B
Plaintext
// https://webaudio.github.io/web-audio-api/#enumdef-oscillatortype
|
|
enum OscillatorType {
|
|
"sine",
|
|
"square",
|
|
"sawtooth",
|
|
"triangle",
|
|
"custom"
|
|
};
|
|
|
|
// https://webaudio.github.io/web-audio-api/#OscillatorOptions
|
|
dictionary OscillatorOptions : AudioNodeOptions {
|
|
OscillatorType type = "sine";
|
|
float frequency = 440;
|
|
float detune = 0;
|
|
PeriodicWave periodicWave;
|
|
};
|
|
|
|
// https://webaudio.github.io/web-audio-api/#OscillatorNode
|
|
[Exposed=Window]
|
|
interface OscillatorNode : AudioScheduledSourceNode {
|
|
constructor(BaseAudioContext context, optional OscillatorOptions options = {});
|
|
attribute OscillatorType type;
|
|
readonly attribute AudioParam frequency;
|
|
readonly attribute AudioParam detune;
|
|
undefined setPeriodicWave(PeriodicWave periodicWave);
|
|
};
|