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 |
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.
| std::array<ValueEvent, kMaxEvents> pulp::dataplane::EventFrame::events {} |
|
staticconstexpr |
| 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.