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

◆ on_attach()

void MayaFlux::Buffers::InputAccessProcessor::on_attach ( const std::shared_ptr< Buffer > &  buffer)
overridevirtual

Called when processor is attached to a buffer.

Parameters
bufferBuffer being attached to

Reimplemented from MayaFlux::Buffers::BufferProcessor.

Definition at line 71 of file InputAudioBuffer.cpp.

72{
73 auto input_buffer = std::dynamic_pointer_cast<InputAudioBuffer>(buffer);
74 if (!input_buffer) {
75 throw std::runtime_error("InputAccessProcessor can only be attached to InputAudioBuffer");
76 }
77}