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

◆ SoundStreamReader()

MayaFlux::Buffers::SoundStreamReader::SoundStreamReader ( const std::shared_ptr< Kakshya::StreamContainer > &  container)
explicit

Definition at line 9 of file SoundContainerBuffer.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}
std::shared_ptr< Kakshya::StreamContainer > m_container
void on_container_state_change(const std::shared_ptr< Kakshya::SignalSourceContainer > &container, Kakshya::ProcessingState state)
Respond to container state changes (e.g., READY, PROCESSED, NEEDS_REMOVAL).

References m_num_channels, and on_container_state_change().

+ Here is the call graph for this function: