NAP
mixnode.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 #include <audio/core/audionode.h>
8 
9 namespace nap
10 {
11  namespace audio
12  {
13 
17  class NAPAPI MixNode : public Node
18  {
19  RTTI_ENABLE(Node)
20 
21  public:
27  MixNode(NodeManager& manager, int reservedInputCount = 2);
28 
33 
37  OutputPin audioOutput = {this};
38 
39  private:
43  void process() override;
44 
45  std::vector<SampleBuffer*> mInputBuffers; // Internal preallocated input result buffer
46  };
47 
48  }
49 }
50 
nap::audio::MultiInputPin
Definition: audiopin.h:145
nap::audio::MixNode
Definition: mixnode.h:17
nap::audio::MixNode::inputs
MultiInputPin inputs
Definition: mixnode.h:32
nap::audio::NodeManager
Definition: audionodemanager.h:33
nap::audio::OutputPin
Definition: audiopin.h:204
nap::audio::Node
Definition: audionode.h:33
nap
Definition: templateapp.h:17