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

◆ NodeTimeSpec() [1/2]

MayaFlux::Kriya::NodeTimeSpec::NodeTimeSpec ( double  seconds,
std::optional< std::vector< uint32_t > >  channels = std::nullopt 
)

Constructs a NodeTimeSpec with the specified duration.

Parameters
secondsDuration of the operation in seconds
channelsOptional list of channels to activate; if not provided, all active channels are used

This constructor is typically used internally by the Time() factory function. It creates a NodeTimeSpec that will use the global scheduler and graph manager.

Definition at line 9 of file Operators.cpp.

10 : m_seconds(seconds)
11 , m_channels(std::move(channels))
14{
15}
std::optional< std::vector< uint32_t > > m_channels
Vruta::TaskScheduler & m_scheduler
Reference to the scheduler that will manage timing.
Definition Operators.hpp:98
Nodes::NodeGraphManager & m_graph_manager
Reference to the graph manager that will manage node connections.
double m_seconds
Duration of the operation in seconds.
Definition Operators.hpp:90
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:18
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Definition Chronie.cpp:14