mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Add a stubbed slot for DynamicsCompressorNode.reduction
For now, this slot is always 0 - (the default value per spec). But once we start actually processing audio streams this internal slot should be changed correspondingly.
This commit is contained in:
parent
cf615cbd1c
commit
3ccbc83168
Notes:
sideshowbarker
2024-07-16 17:12:03 +09:00
Author: https://github.com/shannonbooth
Commit: 3ccbc83168
Pull-request: https://github.com/SerenityOS/serenity/pull/24351
4 changed files with 9 additions and 1 deletions
|
@ -35,6 +35,7 @@ public:
|
|||
JS::NonnullGCPtr<AudioParam const> ratio() const { return m_ratio; }
|
||||
JS::NonnullGCPtr<AudioParam const> attack() const { return m_attack; }
|
||||
JS::NonnullGCPtr<AudioParam const> release() const { return m_release; }
|
||||
float reduction() const { return m_reduction; }
|
||||
|
||||
protected:
|
||||
DynamicsCompressorNode(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
|
@ -57,6 +58,9 @@ private:
|
|||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-release
|
||||
JS::NonnullGCPtr<AudioParam> m_release;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-internal-reduction-slot
|
||||
float m_reduction { 0 }; // [[internal reduction]]
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue