OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia::meters::true_peak Struct Reference

Detailed Description

True peak (ITU-R BS.1770 Annex 2): the peak of the signal oversampled 4 times below 96 kHz, twice below 192 kHz, with a 48-tap windowed-sinc polyphase interpolator; at 192 kHz and above, the sample peak. Holds the highest absolute value of the last process() call in block_peak.

Public Member Functions

void prepare (double rate) noexcept
void process (const auto *in, int n) noexcept

Public Attributes

int factor {1}
std::array< std::array< double, taps_per_phase >, max_factor > coefs {}
std::array< double, 2 *taps_per_phase > history {}
 The last taps_per_phase samples, stored twice so that the newest ones are always contiguous: history[pos + 1 .
int pos {}
double block_peak {}

Static Public Attributes

static constexpr int taps_per_phase = 12
static constexpr int max_factor = 4

Member Data Documentation

◆ history

std::array<double, 2 * taps_per_phase> ossia::meters::true_peak::history {}

The last taps_per_phase samples, stored twice so that the newest ones are always contiguous: history[pos + 1 .

. pos + taps_per_phase].