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:
Shannon Booth 2024-04-28 12:07:14 +12:00 committed by Andreas Kling
commit 1678f43c38
Notes: sideshowbarker 2024-07-17 03:16:02 +09:00
3 changed files with 12 additions and 1 deletions

View file

@ -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&);