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

◆ Time() [2/2]

MAYAFLUX_API TimeSpec MayaFlux::Time ( double  seconds,
uint32_t  channel = 0 
)

Creates a TimeSpec with the specified duration and a single channel.

This overload allows specifying a single channel to activate.

Example usage:

// Activate a processing node for 2 seconds on channel 1
process_node >> Time(2.0, 1);
// Activate a processing node for 2 seconds on default 0 channel
process_node >> Time(2.0);
TimeSpec Time(double seconds, uint32_t channel)
Creates a TimeSpec with the specified duration and a single channel.
Definition Temporal.cpp:9
Parameters
secondsDuration in seconds.
channelChannel to activate.
Returns
A TimeSpec object representing the specified duration and channel.

Definition at line 9 of file Temporal.cpp.

10{
11 return { seconds, channel };
12}