VISR  0.12.0
Versatile Interactive Scene Renderer
add.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_LIBRCL_ADD_HPP_INCLUDED
4 #define VISR_LIBRCL_ADD_HPP_INCLUDED
5 
6 #include "export_symbols.hpp"
7 
8 #include <libvisr/constants.hpp>
10 #include <libvisr/audio_input.hpp>
11 #include <libvisr/audio_output.hpp>
12 
13 #include <memory> // for std::unique_ptr
14 #include <vector>
15 
16 namespace visr
17 {
18 
19 namespace rcl
20 {
21 
27 class VISR_RCL_LIBRARY_SYMBOL Add: public AtomicComponent
28 {
29 public:
38  explicit Add( SignalFlowContext const & context,
39  char const * name,
40  CompositeComponent * parent,
41  std::size_t width,
42  std::size_t numInputs );
43 
47  ~Add();
48 
54  void process();
55 
56 private:
60  AudioOutput mOutput;
61 
65  std::vector<std::unique_ptr< AudioInput > > mInputs;
66 };
67 
68 } // namespace rcl
69 
70 } // namespace visr
71 
72 #endif // #ifndef VISR_LIBRCL_ADD_HPP_INCLUDED
Definition: add.hpp:27
Definition: options.cpp:10
Definition: atomic_component.hpp:21
Definition: composite_component.hpp:29
Definition: signal_flow_context.hpp:15