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

◆ on_attach()

void MayaFlux::Buffers::InputAccessProcessor::on_attach ( 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 67 of file InputAudioBuffer.cpp.

68{
69 auto input_buffer = std::dynamic_pointer_cast<InputAudioBuffer>(buffer);
70 if (!input_buffer) {
71 throw std::runtime_error("InputAccessProcessor can only be attached to InputAudioBuffer");
72 }
73}