MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ NetworkAudioProcessor()

MayaFlux::Buffers::NetworkAudioProcessor::NetworkAudioProcessor ( std::shared_ptr< Nodes::Network::NodeNetwork network,
float  mix = 1.0F,
bool  clear_before_process = true 
)

Creates a processor connected to a NodeNetwork.

Parameters
networkSource network whose batch output fills this buffer (must be AUDIO_SINK or AUDIO_COMPUTE)
mixInterpolation coefficient between existing and incoming data (0.0-1.0)
clear_before_processWhether to zero the buffer before writing network output

Definition at line 9 of file NetworkAudioBuffer.cpp.

13 : m_network(std::move(network))
14 , m_mix(mix)
15 , m_clear_before_process(clear_before_process)
16{
17}
std::shared_ptr< Nodes::Network::NodeNetwork > m_network
std::vector< double > mix(const std::vector< std::vector< double > > &streams)
Mix multiple data streams with equal weighting.
Definition Yantra.cpp:1021