/* * Copyright (c) 2024, Shannon Booth * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Web::WebAudio { JS_DEFINE_ALLOCATOR(OscillatorNode); OscillatorNode::~OscillatorNode() = default; WebIDL::ExceptionOr> OscillatorNode::create(JS::Realm& realm, JS::NonnullGCPtr context, OscillatorOptions const& options) { return construct_impl(realm, context, options); } // https://webaudio.github.io/web-audio-api/#dom-oscillatornode-oscillatornode WebIDL::ExceptionOr> OscillatorNode::construct_impl(JS::Realm& realm, JS::NonnullGCPtr, OscillatorOptions const&) { return WebIDL::NotSupportedError::create(realm, "FIXME: Implement OscillatorNode::construct_impl"_fly_string); } void OscillatorNode::initialize(JS::Realm& realm) { Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(OscillatorNode); } void OscillatorNode::visit_edges(Cell::Visitor& visitor) { Base::visit_edges(visitor); } }