mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb: Implement the OscillatorNode.detune
attribute
This commit is contained in:
parent
ed46d247de
commit
72818300c0
Notes:
github-actions[bot]
2025-01-04 10:13:38 +00:00
Author: https://github.com/tcl3
Commit: 72818300c0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3122
Reviewed-by: https://github.com/shannonbooth ✅
3 changed files with 9 additions and 1 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
WebIDL::ExceptionOr<void> set_type(Bindings::OscillatorType);
|
||||
|
||||
GC::Ref<AudioParam const> frequency() const { return m_frequency; }
|
||||
GC::Ref<AudioParam const> detune() const { return m_detune; }
|
||||
|
||||
WebIDL::UnsignedLong number_of_inputs() override { return 0; }
|
||||
WebIDL::UnsignedLong number_of_outputs() override { return 1; }
|
||||
|
||||
|
@ -51,6 +53,9 @@ private:
|
|||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-oscillatornode-frequency
|
||||
GC::Ref<AudioParam> m_frequency;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-oscillatornode-detune
|
||||
GC::Ref<AudioParam> m_detune;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue