mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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:
parent
c8821cf8e0
commit
97576d27b9
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/shannonbooth
Commit: 97576d27b9
Pull-request: https://github.com/SerenityOS/serenity/pull/24195
8 changed files with 51 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue