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

◆ prepare()

void MayaFlux::Nodes::Network::ReedOperator::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 120 of file TerminationOperators.cpp.

121{
122 m_end_gain = end_gain_of(grid, end);
123 m_density = spec.air_density;
124 m_time_step = grid.time_step;
125 reset();
126 process(0.0F);
127}
void reset() override
Clear the state, keeping the parameters.
void process(float frames) override
Process for one batch cycle.

References m_density, m_end_gain, m_time_step, process(), and reset().

Here is the call graph for this function: