|
Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
|
Manages port observer lifecycle and runs a drain timer. More...
#include <src/dsp/port_observation_manager.h>


Public Types | |
| using | RegistrationId = int |
Signals | |
| void | observationChanged () |
Public Member Functions | |
| PortObservationManager (utils::IObjectRegistry ®istry, QObject *parent=nullptr) | |
| RegistrationId | register_request (const Port &port) |
| void | unregister_request (RegistrationId id) |
| PortObservationCache & | cache (RegistrationId id) |
| PortObserver * | get_observer (const Port &port) const |
| std::span< PortObserver *const > | observers () const |
| void | drain_all () |
Manages port observer lifecycle and runs a drain timer.
Owned by Project. UI components create ObservationToken instances to request observation of a port. The manager creates/removes PortObserver instances based on ref counts and emits observationChanged() to trigger graph rebuilds.
A 60fps drain timer consuming-reads from observer ring buffers into per-requester caches on the UI thread.
Definition at line 42 of file port_observation_manager.h.
| using zrythm::dsp::PortObservationManager::RegistrationId = int |
Definition at line 49 of file port_observation_manager.h.