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

◆ set_default_processor()

void MayaFlux::Buffers::AudioBuffer::set_default_processor ( std::shared_ptr< BufferProcessor processor)
overridevirtual

Sets the default audio transformation processor for this buffer.

Parameters
processorAudio processor to use as default transformation

Configures the default audio processor that will be used when process_default() is called. The processor should be compatible with double-precision audio data processing.

Implements MayaFlux::Buffers::Buffer.

Definition at line 62 of file AudioBuffer.cpp.

63{
64 try {
66 m_default_processor->on_detach(shared_from_this());
67 }
68 if (processor) {
69 processor->on_attach(shared_from_this());
70 }
71 m_default_processor = processor;
72 } catch (const std::exception& e) {
73 std::cout << "Exception in set_default_processor: " << e.what() << std::endl;
74 throw;
75 }
76}
std::shared_ptr< BufferProcessor > m_default_processor
Default audio transformation processor for this buffer.

References m_default_processor.

Referenced by MayaFlux::Buffers::ContainerBuffer::initialize(), MayaFlux::Buffers::RootAudioBuffer::initialize(), and MayaFlux::Buffers::FileBridgeBuffer::setup_chain_and_processor().

+ Here is the caller graph for this function: