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

◆ register_state_change_callback()

void MayaFlux::Kakshya::SoundStreamContainer::register_state_change_callback ( std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)>  callback)
inlineoverridevirtual

Register a callback to be invoked on processing state changes.

Parameters
callbackFunction to call when state changes (receives container and new state)

Enables external components to react to lifecycle transitions for orchestration, resource management, or UI updates.

Implements MayaFlux::Kakshya::SignalSourceContainer.

Definition at line 115 of file SoundStreamContainer.hpp.

117 {
118 Memory::SeqlockWriteGuard g(m_cb_lock);
119 m_state_callback = std::move(callback);
120 }
PickCallback callback
Definition Picker.cpp:22
std::function< void(std::shared_ptr< SignalSourceContainer >, ProcessingState)> m_state_callback

References callback.