Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::dataplane::EventFrame Struct Reference

A bounded list of occurrences from one audio block. More...

#include <value_source.hpp>

Public Attributes

std::array< ValueEvent, kMaxEvents > events {}
int count = 0
std::uint32_t publication = 0
 Source-owned generation used by a reader to identify this exact block.

Static Public Attributes

static constexpr int kMaxEvents = 1024

Detailed Description

A bounded list of occurrences from one audio block.

Fixed capacity keeps the payload trivially copyable for TripleBuffer. Publishers call publish() only for blocks they want the UI to observe; an empty frame is valid but carries no occurrence to dispatch.

Member Data Documentation

◆ count

int pulp::dataplane::EventFrame::count = 0

◆ events

std::array<ValueEvent, kMaxEvents> pulp::dataplane::EventFrame::events {}

◆ kMaxEvents

int pulp::dataplane::EventFrame::kMaxEvents = 1024
staticconstexpr

◆ publication

std::uint32_t pulp::dataplane::EventFrame::publication = 0

Source-owned generation used by a reader to identify this exact block.

Unlike PublishCounter, this travels atomically with the payload, so a publish racing the UI snapshot cannot duplicate the newest block.


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/dataplane/include/pulp/dataplane/value_source.hpp