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

◆ set_processing_chain()

void MayaFlux::Buffers::AudioBuffer::set_processing_chain ( 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 120 of file AudioBuffer.cpp.

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

References m_processing_chain.