Gets a batch of data from the node.
- Parameters
-
| num_samples | Number of samples to retrieve |
- Returns
- Vector of data samples
This method handles the interaction with the node's processing mechanism, ensuring thread-safe access and proper state management.
Definition at line 40 of file NodeBuffer.cpp.
41{
42 std::vector<double> output(num_samples);
43 const auto& state =
m_node->m_state.load();
44
46 for (size_t i = 0; i < num_samples; i++) {
47 output[i] =
m_node->process_sample(0.F);
48 }
49 } else {
51 for (size_t i = 0; i < num_samples; i++) {
52 output[i] =
m_node->process_sample(0.F);
53 }
55 }
56
57 return output;
58}
std::shared_ptr< Nodes::Node > m_node
Source node that generates sequential data values.
@ INACTIVE
Engine is not processing this node.
References MayaFlux::Utils::INACTIVE, and m_node.