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

◆ prepare()

void MayaFlux::Nodes::Network::RadiationOperator::prepare ( const Kinesis::Acoustics::DuctGrid & grid,
const Kinesis::Acoustics::DuctSpec & spec,
DuctEnd end )
overridevirtual

Bind to a grid and end, and reset the state.

Note
Allocates nothing. Called by the network on the audio thread when a grid is installed, after accepts returned true.

Implements MayaFlux::Nodes::Network::TerminationOperator.

Definition at line 344 of file TerminationOperators.cpp.

345{
346 const auto coefficients = coefficients_for(grid, spec, end);
347 m_ready = coefficients.has_value();
348 if (m_ready) {
350 }
351 m_end_gain = end_gain_of(grid, end);
352 m_state = {};
353}
Kinesis::Acoustics::RadiationCoefficients m_coefficients
std::optional< Kinesis::Acoustics::RadiationCoefficients > coefficients_for(const Kinesis::Acoustics::DuctGrid &grid, const Kinesis::Acoustics::DuctSpec &spec, DuctEnd end) const

References coefficients_for(), m_coefficients, m_end_gain, m_ready, and m_state.

Here is the call graph for this function: