|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Bridge::write | ( | uint32_t | id, |
| std::function< void(std::span< const float >)> | sink | ||
| ) |
Route element bulk value to a caller-supplied sink each frame.
When the element's MappedState<T> has a bulk_reader (T is vector<float> or vector<double>), the full vector is forwarded as a span. For scalar T the sink receives a single-element span of the scalar value.
Intended for consumers that operate on coefficient arrays or other N-element state: FIR/IIR coefficient vectors, Random node bounds, any function accepting a contiguous float range.
| id | Element id. |
| sink | Callable invoked each frame with the current value span. |
Definition at line 277 of file Bridge.cpp.
References MayaFlux::Vruta::TaskScheduler::add_task(), b, MayaFlux::Kriya::FrameDelay::frames_to_wait, MayaFlux::Journal::Init, m_records, m_scheduler, make_task_name(), MF_ERROR, and MayaFlux::Journal::Portal.
Here is the call graph for this function: