ladybird/Userland/Libraries/LibWeb/WebAudio/GainNode.idl
Shannon Booth 1fa7235fec LibWeb: Add Implement GainNode interface
As with all other current audio nodes we still need to wire up the
inputs and outputs so it can be properly used in an audio context - but
this is enough to implement the public IDL interface.
2024-05-28 08:06:09 +02:00

16 lines
460 B
Plaintext

#import <WebAudio/AudioNode.idl>
#import <WebAudio/AudioParam.idl>
#import <WebAudio/BaseAudioContext.idl>
// https://webaudio.github.io/web-audio-api/#GainOptions
dictionary GainOptions : AudioNodeOptions {
float gain = 1.0;
};
// https://webaudio.github.io/web-audio-api/#GainNode
[Exposed=Window]
interface GainNode : AudioNode {
constructor(BaseAudioContext context, optional GainOptions options = {});
readonly attribute AudioParam gain;
};