MayaFlux 0.1.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 77 of file NodeBuffer.cpp.

78 : AudioBuffer(channel_id, num_samples)
79 , m_source_node(std::move(source))
80 , m_clear_before_process(clear_before_process)
81{
83}
std::shared_ptr< BufferProcessor > m_default_processor
Default audio transformation processor for this buffer.
AudioBuffer()
Creates a new uninitialized audio buffer.
std::shared_ptr< BufferProcessor > create_default_processor() override
Creates the default processor for this buffer type.
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.

References create_default_processor(), and MayaFlux::Buffers::AudioBuffer::m_default_processor.

+ Here is the call graph for this function: