ladybird/Userland/Libraries/LibWeb/WebAudio/PeriodicWave.idl
Shannon Booth b1b7e2324a LibWeb: Add stub IDL interface for PeriodicWave
PeriodicWave represents an arbitrary periodic waveform to be used
with an OscillatorNode.
2024-05-02 07:49:23 +02:00

18 lines
562 B
Text

#import <WebAudio/BaseAudioContext.idl>
// https://webaudio.github.io/web-audio-api/#PeriodicWaveConstraints
dictionary PeriodicWaveConstraints {
boolean disableNormalization = false;
};
// https://webaudio.github.io/web-audio-api/#PeriodicWaveOptions
dictionary PeriodicWaveOptions : PeriodicWaveConstraints {
sequence<float> real;
sequence<float> imag;
};
// https://webaudio.github.io/web-audio-api/#PeriodicWave
[Exposed=Window]
interface PeriodicWave {
constructor(BaseAudioContext context, optional PeriodicWaveOptions options = {});
};