|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Audio-specific timeline data cache. More...
#include <src/dsp/timeline_data_cache.h>


Data Structures | |
| struct | AudioRegionEntry |
| Audio region entry for caching. More... | |
Public Member Functions | |
| void | add_audio_region (IntervalType interval, const juce::AudioSampleBuffer &audio_buffer) |
| Adds an audio region for the given interval. | |
| const std::vector< AudioRegionEntry > & | get_audio_regions () const |
| Gets the cached audio regions. | |
| void | clear () override |
| Clears all cached data. | |
| void | remove_sequences_matching_interval (IntervalType interval) override |
| Removes cached data matching the given interval. | |
| void | finalize_changes () override |
| Finalizes changes and prepares cached data for access. | |
| bool | has_content () const override |
| Checks if the cache has any content. | |
Additional Inherited Members | |
| Public Types inherited from zrythm::dsp::TimelineDataCache | |
| using | IntervalType = std::pair<units::sample_t, units::sample_t> |
Audio-specific timeline data cache.
Handles caching of audio regions with thread-safe access and range-based updates.
Definition at line 115 of file timeline_data_cache.h.
| void zrythm::dsp::AudioTimelineDataCache::add_audio_region | ( | IntervalType | interval, |
| const juce::AudioSampleBuffer & | audio_buffer ) |
Adds an audio region for the given interval.
| interval | The time interval (in samples). |
| audio_buffer | The audio sample buffer to copy. |
|
overridevirtual |
Clears all cached data.
Implements zrythm::dsp::TimelineDataCache.
|
overridevirtual |
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.
Implements zrythm::dsp::TimelineDataCache.
|
inline |
Gets the cached audio regions.
Definition at line 152 of file timeline_data_cache.h.
|
overridevirtual |
Checks if the cache has any content.
Implements zrythm::dsp::TimelineDataCache.
|
overridevirtual |
Removes cached data matching the given interval.
| interval | The time interval to remove (in samples). |
Implements zrythm::dsp::TimelineDataCache.