Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::PortObservationCache Struct Reference

Per-requester cache for drained observation data. More...

#include <src/dsp/port_observation_cache.h>

Public Member Functions

void clear_audio ()
void clear_midi ()
void clear ()

Data Fields

std::vector< std::vector< float > > audio
std::vector< RealtimeMidiEvent > midi

Static Public Attributes

static constexpr size_t kMaxAudioSamples = 100000
static constexpr size_t kMaxMidiEvents = 4096

Detailed Description

Per-requester cache for drained observation data.

Filled by the manager's drain timer (consuming reads from observer ring buffers). Read by UI components at their own pace — no synchronization needed since each requester has its own cache.

Definition at line 21 of file port_observation_cache.h.

Member Function Documentation

◆ clear()

void zrythm::dsp::PortObservationCache::clear ( )
inline

Definition at line 35 of file port_observation_cache.h.

◆ clear_audio()

void zrythm::dsp::PortObservationCache::clear_audio ( )
inline

Definition at line 29 of file port_observation_cache.h.

◆ clear_midi()

void zrythm::dsp::PortObservationCache::clear_midi ( )
inline

Definition at line 34 of file port_observation_cache.h.

Field Documentation

◆ audio

std::vector<std::vector<float> > zrythm::dsp::PortObservationCache::audio

Definition at line 26 of file port_observation_cache.h.

◆ kMaxAudioSamples

size_t zrythm::dsp::PortObservationCache::kMaxAudioSamples = 100000
staticconstexpr

Definition at line 23 of file port_observation_cache.h.

◆ kMaxMidiEvents

size_t zrythm::dsp::PortObservationCache::kMaxMidiEvents = 4096
staticconstexpr

Definition at line 24 of file port_observation_cache.h.

◆ midi

std::vector<RealtimeMidiEvent> zrythm::dsp::PortObservationCache::midi

Definition at line 27 of file port_observation_cache.h.


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