VISR  0.11.6
Versatile Interactive Scene Renderer
signal_flow.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_APPS_AUDIO_NETWORK_STREAMER_SIGNAL_FLOW_HPP_INCLUDED
4 #define VISR_APPS_AUDIO_NETWORK_STREAMER_SIGNAL_FLOW_HPP_INCLUDED
5 
7 
11 
12 #include <memory>
13 #include <vector>
14 
15 namespace visr
16 {
17 
18 // forward declaration
19 namespace pml
20 {
21 template< typename DataType >
23 }
24 namespace rcl
25 {
26 class UdpSender;
27 }
28 
29 namespace apps
30 {
31 namespace audio_network_streamer
32 {
33 
35 {
36 public:
37  explicit SignalFlow( SignalFlowContext const & context,
38  char const * name,
39  CompositeComponent * parent,
40  std::string const & sendAddresses );
41 
42  ~SignalFlow();
43 
44 private:
45  AudioInputT<SampleType> mAudioInput;
46 
47  AudioNetworkEncoder mEncoder;
48 
49  std::vector< std::unique_ptr<rcl::UdpSender> > mSenders;
50 };
51 
52 } // namespace audio_network_streamer
53 } // namespace apps
54 } // namespace visr
55 
56 #endif // #ifndef VISR_APPS_AUDIO_NETWORK_STREAMER_SIGNAL_FLOW_HPP_INCLUDED
~SignalFlow()
Definition: signal_flow.cpp:71
Definition: audio_network_encoder.hpp:31
std::string const & name() const
Definition: component.cpp:52
Definition: options.cpp:10
Definition: udp_sender.hpp:33
SignalFlow(SignalFlowContext const &context, char const *name, CompositeComponent *parent, std::string const &sendAddresses)
Definition: signal_flow.cpp:22
Definition: composite_component.hpp:29
Definition: signal_flow_context.hpp:15
Definition: signal_flow.hpp:22