A single multi-channel meter reading. More...
#include <value_source.hpp>
Public Attributes | |
| std::array< float, kMaxChannels > | rms {} |
| std::array< float, kMaxChannels > | peak {} |
| int | channels = 0 |
| Number of valid channels in rms/peak. | |
Static Public Attributes | |
| static constexpr int | kMaxChannels = 8 |
A single multi-channel meter reading.
Fixed-capacity and trivially copyable so it can ride a TripleBuffer with no allocation on the publish path. Stereo is the common case; kMaxChannels is the surround ceiling.
Number of valid channels in rms/peak.
Publishers should keep this in [0, kMaxChannels]; consumers must still bound their index by min(channels, kMaxChannels) since publish() stores the frame verbatim and never trusts the count to gate an array access.
|
staticconstexpr |
| std::array<float, kMaxChannels> pulp::dataplane::MeterFrame::peak {} |
| std::array<float, kMaxChannels> pulp::dataplane::MeterFrame::rms {} |