MayaFlux 0.2.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 123 of file AudioBuffer.cpp.

124{
125 if (m_processing_chain && !force) {
126 m_processing_chain->merge_chain(chain);
127 return;
128 }
129 m_processing_chain = chain;
130}
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: