Now, all nodes are connected through Sink::connect_input() and disconnect_input(). AudioMixer now derives from a base AudioProcessor class that inherits from both AudioSink and AudioProducer. It is the only current node that can accept multiple inputs, tracking each one by its pointer identity.
20 lines
350 B
C++
20 lines
350 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibMedia/Producers/AudioProducer.h>
|
|
#include <LibMedia/Sinks/AudioSink.h>
|
|
|
|
namespace Media {
|
|
|
|
class AudioProcessor : public AudioProducer
|
|
, public AudioSink {
|
|
public:
|
|
virtual ~AudioProcessor() = default;
|
|
};
|
|
|
|
}
|