MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Buffers::FileBridgeProcessor Class Reference

A buffer processor that uses a FileToStreamChain to process audio data. More...

#include <FileBridgeBuffer.hpp>

+ Inheritance diagram for MayaFlux::Buffers::FileBridgeProcessor:
+ Collaboration diagram for MayaFlux::Buffers::FileBridgeProcessor:

Public Member Functions

 FileBridgeProcessor (std::shared_ptr< FileToStreamChain > chain)
 
void processing_function (std::shared_ptr< Buffer > buffer) override
 The core processing function that must be implemented by derived classes.
 
void on_attach (std::shared_ptr< Buffer > buffer) override
 Called when this processor is attached to a buffer.
 
void on_detach (std::shared_ptr< Buffer >) override
 Called when this processor is detached from a buffer.
 
std::shared_ptr< FileToStreamChainget_chain () const
 
- Public Member Functions inherited from MayaFlux::Buffers::BufferProcessor
virtual ~BufferProcessor ()=default
 Virtual destructor for proper cleanup of derived classes.
 
void process (std::shared_ptr< Buffer > buffer)
 Applies a computational transformation to the data in the provided buffer.
 
virtual void set_processing_token (ProcessingToken token)
 Gets the preferred processing backend for this processor.
 
virtual ProcessingToken get_processing_token () const
 Gets the current processing token for this buffer.
 
virtual bool is_compatible_with (std::shared_ptr< Buffer >) const
 Checks if this processor can handle the specified buffer type.
 

Private Attributes

std::shared_ptr< FileToStreamChainm_chain
 
std::shared_ptr< Bufferm_attached_buffer
 

Additional Inherited Members

- Protected Attributes inherited from MayaFlux::Buffers::BufferProcessor
ProcessingToken m_processing_token { ProcessingToken::AUDIO_BACKEND }
 

Detailed Description

A buffer processor that uses a FileToStreamChain to process audio data.

This processor is responsible for managing the processing of audio data from a sound file container to a dynamic sound stream using the provided FileToStreamChain.

Definition at line 51 of file FileBridgeBuffer.hpp.


The documentation for this class was generated from the following files: