class
FLoudnessMeter
ITU-R BS.1770 / EBU R128 loudness of an interleaved stream: K-weighting (a high shelf and the RLB high-pass), 400 ms blocks on a 100 ms hop, momentary and short-term loudness, integrated loudness through the -70 LUFS absolute and -10 LU relative gates, and a true peak read from a 4x oversampled signal. Up to two channels (left and right, weight 1). Feed it the master mix and compare against -23 LUFS (broadcast) or -16 (games).
- Module
- Audio
- Header
#include "Audio/LoudnessMeter.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | Init | |
void | Reset | |
void | Process | |
float | GetMomentaryLufs | LUFS over the last 400 ms and 3 s; -120 before enough audio has arrived. |
float | GetShortTermLufs | |
float | GetIntegratedLufs | |
float | GetTruePeakDb | dBTP, the highest oversampled peak since Init or Reset. |
uint64_t | GetHopCount | Hops committed so far (one per 100 ms), so a reader can tell when a new loudness value exists. |
Function details
Init
C++
void Init(uint32_t sampleRate, uint32_t channels)Reset
C++
void Reset()Process
C++
void Process(const float* interleaved, uint32_t frames)GetMomentaryLufs
C++
float GetMomentaryLufs() constLUFS over the last 400 ms and 3 s; -120 before enough audio has arrived.
GetShortTermLufs
C++
float GetShortTermLufs() constGetIntegratedLufs
C++
float GetIntegratedLufs() constGetTruePeakDb
C++
float GetTruePeakDb() constdBTP, the highest oversampled peak since Init or Reset.
GetHopCount
C++
uint64_t GetHopCount() constHops committed so far (one per 100 ms), so a reader can tell when a new loudness value exists.
Generated from Audio/LoudnessMeter.h via audio.json · Dec 5, 2026Version 1.1.0