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

◆ set_container()

void MayaFlux::Buffers::SoundContainerBuffer::set_container ( const std::shared_ptr< Kakshya::StreamContainer > &  container)

Update the container reference.

Parameters
containerNew StreamContainer to use.

Definition at line 261 of file SoundContainerBuffer.cpp.

262{
263 m_container = container;
264
265 if (auto adapter = std::dynamic_pointer_cast<SoundStreamReader>(m_default_processor)) {
266 adapter->set_container(container);
267 }
268
270}
std::shared_ptr< BufferProcessor > m_default_processor
Default audio transformation processor for this buffer.
void setup_zero_copy_if_possible()
Attempt to enable zero-copy operation if container layout allows.
std::shared_ptr< Kakshya::StreamContainer > m_container

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

+ Here is the call graph for this function: