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

◆ ContainerToBufferAdapter()

MayaFlux::Buffers::ContainerToBufferAdapter::ContainerToBufferAdapter ( std::shared_ptr< Kakshya::StreamContainer container)
explicit

Definition at line 9 of file ContainerBuffer.cpp.

10 : m_container(container)
11{
12 if (container) {
13 auto structure = container->get_structure();
14 m_num_channels = structure.get_channel_count();
15
16 container->register_state_change_callback(
17 [this](auto c, auto s) {
18 this->on_container_state_change(c, s);
19 });
20 }
21}
void on_container_state_change(std::shared_ptr< Kakshya::SignalSourceContainer > container, Kakshya::ProcessingState state)
Respond to container state changes (e.g., READY, PROCESSED, NEEDS_REMOVAL).
std::shared_ptr< Kakshya::StreamContainer > m_container

References m_num_channels, and on_container_state_change().

+ Here is the call graph for this function: