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

◆ flush()

std::vector< double > MayaFlux::Kinesis::Discrete::Resampler::flush ( )
nodiscard

End the stream.

Returns
The remaining output samples, so that the stream's total is resampled_length of its input

Definition at line 249 of file Resample.cpp.

250{
251 auto& impl = *m_impl;
252 std::vector<double> out;
253 if (!impl.passthrough) {
254 out = impl.produce(resampled_length(impl.seen, impl.from_rate, impl.to_rate));
255 }
256 impl.clear();
257 return out;
258}
size_t resampled_length(size_t samples, uint32_t from_rate, uint32_t to_rate) noexcept
Number of samples resample returns.
Definition Resample.cpp:126

References m_impl, and MayaFlux::Kinesis::Discrete::resampled_length().

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function: