mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibWeb: Add AudioParams for DynamicsCompressorNode
This commit is contained in:
parent
8fa7b2c173
commit
cf615cbd1c
Notes:
sideshowbarker
2024-07-16 22:16:50 +09:00
Author: https://github.com/shannonbooth
Commit: cf615cbd1c
Pull-request: https://github.com/SerenityOS/serenity/pull/24351
5 changed files with 55 additions and 6 deletions
|
@ -30,11 +30,33 @@ public:
|
|||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<DynamicsCompressorNode>> create(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<DynamicsCompressorNode>> construct_impl(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
|
||||
JS::NonnullGCPtr<AudioParam const> threshold() const { return m_threshold; }
|
||||
JS::NonnullGCPtr<AudioParam const> knee() const { return m_knee; }
|
||||
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; }
|
||||
|
||||
protected:
|
||||
DynamicsCompressorNode(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
private:
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-threshold
|
||||
JS::NonnullGCPtr<AudioParam> m_threshold;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-knee
|
||||
JS::NonnullGCPtr<AudioParam> m_knee;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-ratio
|
||||
JS::NonnullGCPtr<AudioParam> m_ratio;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-attack
|
||||
JS::NonnullGCPtr<AudioParam> m_attack;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-release
|
||||
JS::NonnullGCPtr<AudioParam> m_release;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue