mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Implement OscillatorNode.setPeriodicWave()
This commit is contained in:
parent
acbae1b118
commit
8c4e4ec31b
Notes:
github-actions[bot]
2025-01-04 10:13:24 +00:00
Author: https://github.com/tcl3
Commit: 8c4e4ec31b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3122
Reviewed-by: https://github.com/shannonbooth ✅
6 changed files with 205 additions and 18 deletions
|
@ -33,6 +33,8 @@ public:
|
|||
Bindings::OscillatorType type() const;
|
||||
WebIDL::ExceptionOr<void> set_type(Bindings::OscillatorType);
|
||||
|
||||
void set_periodic_wave(GC::Ptr<PeriodicWave>);
|
||||
|
||||
GC::Ref<AudioParam const> frequency() const { return m_frequency; }
|
||||
GC::Ref<AudioParam const> detune() const { return m_detune; }
|
||||
|
||||
|
@ -46,8 +48,6 @@ protected:
|
|||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
private:
|
||||
static WebIDL::ExceptionOr<void> verify_valid_type(JS::Realm&, Bindings::OscillatorType);
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-oscillatornode-type
|
||||
Bindings::OscillatorType m_type { Bindings::OscillatorType::Sine };
|
||||
|
||||
|
@ -56,6 +56,8 @@ private:
|
|||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-oscillatornode-detune
|
||||
GC::Ref<AudioParam> m_detune;
|
||||
|
||||
GC::Ptr<PeriodicWave> m_periodic_wave;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue