/* * Copyright (c) 2024, Shannon Booth * Copyright (c) 2024, Bar Yemini * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include namespace Web::WebAudio { JS_DEFINE_ALLOCATOR(AudioDestinationNode); AudioDestinationNode::AudioDestinationNode(JS::Realm& realm, JS::NonnullGCPtr context) : AudioNode(realm, context) { } AudioDestinationNode::~AudioDestinationNode() = default; // https://webaudio.github.io/web-audio-api/#dom-audiodestinationnode-maxchannelcount WebIDL::UnsignedLong AudioDestinationNode::max_channel_count() { dbgln("FIXME: Implement Audio::DestinationNode::max_channel_count()"); return 2; } JS::NonnullGCPtr AudioDestinationNode::construct_impl(JS::Realm& realm, JS::NonnullGCPtr context) { return realm.heap().allocate(realm, realm, context); } 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); } }