WebAudio: Add IDL interface for AudioDestinationNode

This is an AudioNode representing the final audio destination and is
what the user will ultimately hear.

This node is used as one of the connecting nodes in athenacrisis.com

Add a placeholder for the interface without anything backing it for now.
This commit is contained in:
Shannon Booth 2024-07-24 16:44:49 +12:00 committed by Andreas Kling
commit 5eb80b8697
Notes: github-actions[bot] 2024-07-24 09:15:53 +00:00
7 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,34 @@
/*
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Bindings/AudioDestinationNodePrototype.h>
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/HTML/EventNames.h>
#include <LibWeb/WebAudio/AudioDestinationNode.h>
namespace Web::WebAudio {
JS_DEFINE_ALLOCATOR(AudioDestinationNode);
AudioDestinationNode::AudioDestinationNode(JS::Realm& realm, JS::NonnullGCPtr<BaseAudioContext> context)
: AudioNode(realm, context)
{
}
AudioDestinationNode::~AudioDestinationNode() = default;
void AudioDestinationNode::initialize(JS::Realm& realm)
{
Base::initialize(realm);
WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioDestinationNode);
}
void AudioDestinationNode::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
}
}