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

◆ recompute_capacity()

void MayaFlux::Buffers::FeedbackProcessor::recompute_capacity ( )
private

Definition at line 223 of file FeedbackBuffer.cpp.

224{
225 double needed = 1.0;
226 for (const auto& tap : m_taps) {
227 needed = std::max(needed, tap.max_samples);
228 }
229 const size_t extra = m_order > 1 ? m_order : 0;
230 m_capacity = static_cast<size_t>(std::ceil(needed)) + extra;
231}

References m_capacity, m_order, and m_taps.

Referenced by FeedbackProcessor(), set_feed_samples(), set_interpolation(), set_lag(), and set_lags().

+ Here is the caller graph for this function: