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

◆ NodeBuffer()

MayaFlux::Buffers::NodeBuffer::NodeBuffer ( uint32_t  channel_id,
uint32_t  num_samples,
std::shared_ptr< Nodes::Node source,
bool  clear_before_process = true 
)

Creates a new buffer connected to a computational node.

Parameters
channel_idChannel identifier for this buffer
num_samplesBuffer size in samples
sourceSource node that generates sequential data values
clear_before_processWhether to reset the buffer before adding node output

Initializes a buffer that automatically captures output from the specified computational node when processed. The buffer is configured with a NodeSourceProcessor as its default processor, creating a self-contained data capture system.

Definition at line 61 of file NodeBuffer.cpp.

62 : AudioBuffer(channel_id, num_samples)
63 , m_source_node(std::move(source))
64 , m_clear_before_process(clear_before_process)
65{
66}
AudioBuffer()
Creates a new uninitialized audio buffer.
std::shared_ptr< Nodes::Node > m_source_node
Source node that generates sequential data values.
bool m_clear_before_process
Whether to reset the buffer before adding node output.