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

Cache request handler for a tick range, with built-in debouncing and expanding of the range. More...

#include <src/utils/playback_cache_scheduler.h>

Inheritance diagram for zrythm::utils::PlaybackCacheScheduler:
Collaboration diagram for zrythm::utils::PlaybackCacheScheduler:

Signals

void cacheRequested (utils::ExpandableTickRange affectedRange)

Public Member Functions

 PlaybackCacheScheduler (QObject *parent=nullptr)
Q_INVOKABLE void queueCacheRequestForRange (double affectedTickStart, double affectedTickEnd)
Q_INVOKABLE void queueFullCacheRequest ()
Q_INVOKABLE void queueCacheRequest (utils::ExpandableTickRange affectedRange)
void setDelay (std::chrono::milliseconds delay)
 Sets the delay to be used starting from the next cache request.

Detailed Description

Cache request handler for a tick range, with built-in debouncing and expanding of the range.

Note
A debouncer activates the slot only once, after a timeout / grace period calculated since the last signal emission. In other words: if a signal keeps coming, the slot is not activated. Use case: a search box that actually starts searching only after the user stops typing (that is, after a short timeout since the last user input).

Definition at line 26 of file playback_cache_scheduler.h.


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