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

◆ set_processing_chain()

void MayaFlux::Buffers::AudioBuffer::set_processing_chain ( const std::shared_ptr< BufferProcessingChain > &  chain,
bool  force = false 
)
overridevirtual

Sets the audio transformation chain for this buffer.

Parameters
chainNew audio processing chain for sequential transformations
forceIf true, replaces the existing chain even if one is already set

Replaces the current audio processing chain with the provided one. The chain should contain processors compatible with double-precision audio data.

Implements MayaFlux::Buffers::Buffer.

Definition at line 122 of file AudioBuffer.cpp.

123{
124 if (m_processing_chain && !force) {
125 m_processing_chain->merge_chain(chain);
126 return;
127 }
128 m_processing_chain = chain;
129}
std::shared_ptr< BufferProcessingChain > m_processing_chain
Audio transformation processing chain for this buffer.

References m_processing_chain.

Referenced by MayaFlux::Buffers::SoundFileBridge::setup_processors().

+ Here is the caller graph for this function: