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

◆ set_coefficients()

void MayaFlux::Buffers::FeedbackProcessor::set_coefficients ( std::vector< double >  coefficients)

Set the initial coefficient array and reset every attached buffer's copy.

Definition at line 186 of file FeedbackBuffer.cpp.

187{
188 m_coefficients = std::move(coefficients);
189 for (auto& [buffer, state] : m_states) {
190 state.coefs = m_coefficients;
191 }
192}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::unordered_map< const Buffer *, State > m_states
std::span< double > coefficients(const std::shared_ptr< Buffer > &buffer)
The coefficient array of one attached buffer, empty if it is not attached.

References buffer, coefficients(), m_coefficients, and m_states.

+ Here is the call graph for this function: