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

◆ processing_function()

void MayaFlux::Buffers::NodeFeedProcessor::processing_function ( const std::shared_ptr< Buffer > &  buffer)
overridevirtual

The core processing function that must be implemented by derived classes.

Parameters
bufferBuffer to process

This method is where the actual transformation logic is implemented. It should contain the algorithmic details of how the buffer's data is transformed, analyzed, or processed. The implementation can utilize any backend capabilities available to the processor, including:

  • Parallel Processing: Using multi-threading or GPU compute for large datasets
  • Data Transformations: Applying mathematical operations, filters, or effects
  • Feature Extraction: Analyzing data characteristics for further processing

Derived classes must override this method to provide specific processing behavior.

Implements MayaFlux::Buffers::BufferProcessor.

Definition at line 13 of file NodeFeedProcessor.cpp.

14{
15 if (!m_target) {
16 return;
17 }
18
19 auto audio_buffer = std::dynamic_pointer_cast<AudioBuffer>(buffer);
20 if (!audio_buffer) {
21 return;
22 }
23
24 const auto& data = audio_buffer->get_data();
25 m_target->set_data(data, this);
26}
std::shared_ptr< Nodes::StreamReaderNode > m_target

References m_target.