mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Implement BaseAudioContext.createOscillator
Which currently will always throw an exception as it is unimplemented under the hood - but this gives all of the plumbing we need in order to create a oscillator node as used in the reduced turnstyle testcase.
This commit is contained in:
parent
a83f4216a5
commit
1678f43c38
Notes:
sideshowbarker
2024-07-17 03:16:02 +09:00
Author: https://github.com/shannonbooth
Commit: 1678f43c38
Pull-request: https://github.com/SerenityOS/serenity/pull/24143
3 changed files with 12 additions and 1 deletions
|
@ -44,6 +44,8 @@ public:
|
|||
|
||||
static WebIDL::ExceptionOr<void> verify_audio_options_inside_nominal_range(JS::Realm&, WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate);
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<OscillatorNode>> create_oscillator();
|
||||
|
||||
protected:
|
||||
explicit BaseAudioContext(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue