mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibWeb: Add scaffolding for DynamicsCompressorNode
This commit is contained in:
parent
e2336e2099
commit
2a56df8ecd
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/shannonbooth
Commit: 2a56df8ecd
Pull-request: https://github.com/SerenityOS/serenity/pull/24215
7 changed files with 116 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
#import <WebAudio/AudioNode.idl>
|
||||
#import <WebAudio/AudioParam.idl>
|
||||
#import <WebAudio/BaseAudioContext.idl>
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#DynamicsCompressorOptions
|
||||
dictionary DynamicsCompressorOptions : AudioNodeOptions {
|
||||
float attack = 0.003;
|
||||
float knee = 30;
|
||||
float ratio = 12;
|
||||
float release = 0.25;
|
||||
float threshold = -24;
|
||||
};
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#DynamicsCompressorNode
|
||||
[Exposed=Window]
|
||||
interface DynamicsCompressorNode : AudioNode {
|
||||
constructor(BaseAudioContext context,
|
||||
optional DynamicsCompressorOptions options = {});
|
||||
// FIXME: readonly attribute AudioParam threshold;
|
||||
// FIXME: readonly attribute AudioParam knee;
|
||||
// FIXME: readonly attribute AudioParam ratio;
|
||||
// FIXME: readonly attribute float reduction;
|
||||
// FIXME: readonly attribute AudioParam attack;
|
||||
// FIXME: readonly attribute AudioParam release;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue