MayaFlux 0.2.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 11 of file SoundContainerBuffer.cpp.

12 : m_container(container)
13{
14 if (container) {
15 auto structure = container->get_structure();
16 m_num_channels = structure.get_channel_count();
17
18 container->register_state_change_callback(
19 [this](auto c, auto s) {
20 this->on_container_state_change(c, s);
21 });
22 }
23}
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: