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

◆ set_container()

void MayaFlux::Buffers::ContainerBuffer::set_container ( std::shared_ptr< Kakshya::StreamContainer container)

Update the container reference.

Parameters
containerNew StreamContainer to use.

Definition at line 249 of file ContainerBuffer.cpp.

250{
251 m_container = container;
252
253 if (auto adapter = std::dynamic_pointer_cast<ContainerToBufferAdapter>(m_default_processor)) {
254 adapter->set_container(container);
255 }
256
258}
std::shared_ptr< BufferProcessor > m_default_processor
Default audio transformation processor for this buffer.
std::shared_ptr< Kakshya::StreamContainer > m_container
void setup_zero_copy_if_possible()
Attempt to enable zero-copy operation if container layout allows.

References m_container, MayaFlux::Buffers::AudioBuffer::m_default_processor, and setup_zero_copy_if_possible().

+ Here is the call graph for this function: