Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::PlaybackCacheActivityAggregator Class Reference

Aggregates playback cache activity counts across all tracks and automation tracks in a TrackCollection. More...

#include <src/structure/tracks/playback_cache_activity_aggregator.h>

Inheritance diagram for zrythm::structure::tracks::PlaybackCacheActivityAggregator:
Collaboration diagram for zrythm::structure::tracks::PlaybackCacheActivityAggregator:

Public Member Functions

 PlaybackCacheActivityAggregator (QObject *parent=nullptr)
TrackCollectioncollection () 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::TrackCollectioncollection
int cachePendingCount
int cacheCompleteCount

Detailed Description

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.

Property Documentation

◆ cacheCompleteCount

int zrythm::structure::tracks::PlaybackCacheActivityAggregator::cacheCompleteCount
read

Definition at line 38 of file playback_cache_activity_aggregator.h.

◆ cachePendingCount

int zrythm::structure::tracks::PlaybackCacheActivityAggregator::cachePendingCount
read

Definition at line 37 of file playback_cache_activity_aggregator.h.

◆ collection

zrythm::structure::tracks::TrackCollection * zrythm::structure::tracks::PlaybackCacheActivityAggregator::collection
readwrite

Definition at line 36 of file playback_cache_activity_aggregator.h.


The documentation for this class was generated from the following file: