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

◆ apply_output_scale()

void MayaFlux::Nodes::Network::NodeNetwork::apply_output_scale ( )
protected

Apply m_output_scale to m_last_audio_buffer.

Call at the end of each concrete process_batch() after all samples are written.

Definition at line 26 of file NodeNetwork.cpp.

27{
28 if (m_output_scale == 1.0)
29 return;
30
31 for (auto& s : m_last_audio_buffer)
32 s *= m_output_scale;
33}
double m_output_scale
Post-processing scalar applied to m_last_audio_buffer each batch.
std::vector< double > m_last_audio_buffer

References m_last_audio_buffer, and m_output_scale.

Referenced by MayaFlux::Nodes::Network::ModalNetwork::process_batch(), MayaFlux::Nodes::Network::ResonatorNetwork::process_batch(), and MayaFlux::Nodes::Network::WaveguideNetwork::process_batch().

+ Here is the caller graph for this function: