LibWeb: Add constructor for OscillatorNode

This is still missing a bunch of spec steps to construct the
audio node based on the parameters of the OscillatorNode, but it is at
least enough to construct an object to be able to add a basic test which
can get built upon as more is implemented.
This commit is contained in:
Shannon Booth 2024-04-29 20:03:15 +12:00 committed by Andreas Kling
commit 97576d27b9
Notes: sideshowbarker 2024-07-17 08:37:36 +09:00
8 changed files with 51 additions and 2 deletions

View file

@ -13,6 +13,11 @@ namespace Web::WebAudio {
JS_DEFINE_ALLOCATOR(AudioScheduledSourceNode);
AudioScheduledSourceNode::AudioScheduledSourceNode(JS::Realm& realm, JS::NonnullGCPtr<BaseAudioContext> context)
: AudioNode(realm, context)
{
}
AudioScheduledSourceNode::~AudioScheduledSourceNode() = default;
// https://webaudio.github.io/web-audio-api/#dom-audioscheduledsourcenode-onended