|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Aggregates playback cache activity counts across all tracks and automation tracks in a TrackCollection. More...
#include <src/structure/tracks/playback_cache_activity_aggregator.h>


Public Member Functions | |
| PlaybackCacheActivityAggregator (QObject *parent=nullptr) | |
| TrackCollection * | collection () const |
| void | setCollection (TrackCollection *collection) |
| Q_SIGNAL void | collectionChanged () |
| int | cachePendingCount () const |
| Q_SIGNAL void | cachePendingCountChanged () |
| int | cacheCompleteCount () const |
| Q_SIGNAL void | cacheCompleteCountChanged () |
Properties | |
| zrythm::structure::tracks::TrackCollection * | collection |
| int | cachePendingCount |
| int | cacheCompleteCount |
Aggregates playback cache activity counts across all tracks and automation tracks in a TrackCollection.
Connects to the collection's rowsInserted/rowsAboutToBeRemoved signals and monitors each track's (and automation track's) PlaybackCacheActivityTracker to provide total pending and complete counts as QML-bindable properties.
Signal connections use this as the Qt context object, so they auto-clean when either the aggregator or the sender (tracker/ATL) is destroyed. The handlers early-return if the tracker is not in tracker_states_, making stale connections harmless. This avoids the need for manual disconnect bookkeeping.
This is a debug-only utility.
Definition at line 33 of file playback_cache_activity_aggregator.h.
|
read |
Definition at line 38 of file playback_cache_activity_aggregator.h.
|
read |
Definition at line 37 of file playback_cache_activity_aggregator.h.
|
readwrite |
Definition at line 36 of file playback_cache_activity_aggregator.h.