LibWeb: Implement AudioNode.numberOfInputs and .numberOfOutputs

This commit is contained in:
Jelle Raaijmakers
2024-10-08 12:03:50 +02:00
committed by Andreas Kling
parent d7a3bad2b4
commit 7b4f0d13ee
Notes: github-actions[bot] 2024-10-08 14:35:15 +00:00
8 changed files with 20 additions and 16 deletions

View File

@@ -30,6 +30,9 @@ 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& = {});
WebIDL::UnsignedLong number_of_inputs() override { return 1; }
WebIDL::UnsignedLong number_of_outputs() override { return 1; }
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; }