Skip to main content

dmx_output_loop

Function dmx_output_loop 

Source
pub fn dmx_output_loop(
    data_receiver: Receiver<(usize, Vec<Fixture>)>,
) -> Result<()>
Expand description

Initializes the output interface and continuously streams DMX data on a dedicated thread.

This loop non-blockingly consumes the latest engine state from the provided MPSC receiver, calculates the raw DMX universe buffers, and dispatches them via the configured interfaces. It automatically throttles its execution to match the target frame rate defined by [FREQUENCY].

ยงArguments

  • data_receiver - A channel receiver providing tuple updates containing the current total universe count and the latest snapshot of all active fixtures.