mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 23:12:56 +00:00
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.
28 lines
668 B
C++
28 lines
668 B
C++
/*
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/WebAudio/AudioNode.h>
|
|
|
|
namespace Web::WebAudio {
|
|
|
|
// https://webaudio.github.io/web-audio-api/#AudioDestinationNode
|
|
class AudioDestinationNode : public AudioNode {
|
|
WEB_PLATFORM_OBJECT(AudioDestinationNode, AudioNode);
|
|
JS_DECLARE_ALLOCATOR(AudioDestinationNode);
|
|
|
|
public:
|
|
virtual ~AudioDestinationNode() override;
|
|
|
|
protected:
|
|
AudioDestinationNode(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>);
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
virtual void visit_edges(Cell::Visitor&) override;
|
|
};
|
|
|
|
}
|