|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Base class for timeline data caches. More...
#include <src/dsp/timeline_data_cache.h>

Public Types | |
| using | IntervalType = std::pair<units::sample_t, units::sample_t> |
Public Member Functions | |
| virtual void | clear ()=0 |
| Clears all cached data. | |
| virtual void | remove_sequences_matching_interval (IntervalType interval)=0 |
| Removes cached data matching the given interval. | |
| virtual void | finalize_changes ()=0 |
| Finalizes changes and prepares cached data for access. | |
| virtual bool | has_content () const =0 |
| Checks if the cache has any content. | |
Base class for timeline data caches.
Provides common functionality for all timeline data cache types. This is an abstract base class that defines the interface that all derived cache classes must implement.
Definition at line 21 of file timeline_data_cache.h.
| using zrythm::dsp::TimelineDataCache::IntervalType = std::pair<units::sample_t, units::sample_t> |
Definition at line 24 of file timeline_data_cache.h.
|
pure virtual |
Clears all cached data.
Implemented in zrythm::dsp::AudioTimelineDataCache, zrythm::dsp::AutomationTimelineDataCache, and zrythm::dsp::MidiTimelineDataCache.
|
pure virtual |
Finalizes changes and prepares cached data for access.
This should be called after all modifications are complete to prepare the cached data for real-time access.
Implemented in zrythm::dsp::AudioTimelineDataCache, zrythm::dsp::AutomationTimelineDataCache, and zrythm::dsp::MidiTimelineDataCache.
|
pure virtual |
Checks if the cache has any content.
Implemented in zrythm::dsp::AudioTimelineDataCache, zrythm::dsp::AutomationTimelineDataCache, and zrythm::dsp::MidiTimelineDataCache.
|
pure virtual |
Removes cached data matching the given interval.
| interval | The time interval to remove (in samples). |
Implemented in zrythm::dsp::AudioTimelineDataCache, zrythm::dsp::AutomationTimelineDataCache, and zrythm::dsp::MidiTimelineDataCache.