MCPcopy Create free account
hub / github.com/LabSound/LabSound / AudioBasicProcessorNode

Class AudioBasicProcessorNode

include/LabSound/core/AudioBasicProcessorNode.h:21–44  ·  view source on GitHub ↗

AudioBasicProcessorNode is an AudioNode with one input and one output where the input and output have the same number of channels.

Source from the content-addressed store, hash-verified

19// AudioBasicProcessorNode is an AudioNode with one input and one output where
20// the input and output have the same number of channels.
21class AudioBasicProcessorNode : public AudioNode
22{
23public:
24 AudioBasicProcessorNode(AudioContext &, AudioNodeDescriptor const&);
25 virtual ~AudioBasicProcessorNode() = default;
26
27 // AudioNode
28 virtual void process(ContextRenderLock &, int bufferSize) override;
29 virtual void reset(ContextRenderLock &) override;
30 virtual void initialize() override;
31 virtual void uninitialize() override;
32
33 // Returns the number of channels for both the input and the output.
34 int numberOfChannels();
35
36protected:
37 virtual double tailTime(ContextRenderLock & r) const override;
38 virtual double latencyTime(ContextRenderLock & r) const override;
39
40 AudioProcessor * processor();
41 AudioProcessor * processor() const;
42
43 std::unique_ptr<AudioProcessor> m_processor;
44};
45
46} // namespace lab
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected