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

ReturnsNameDescription
voidInit
voidReset
voidProcess
floatGetMomentaryLufsLUFS over the last 400 ms and 3 s; -120 before enough audio has arrived.
floatGetShortTermLufs
floatGetIntegratedLufs
floatGetTruePeakDbdBTP, the highest oversampled peak since Init or Reset.
uint64_tGetHopCountHops 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() const

LUFS over the last 400 ms and 3 s; -120 before enough audio has arrived.

GetShortTermLufs

C++
float GetShortTermLufs() const

GetIntegratedLufs

C++
float GetIntegratedLufs() const

GetTruePeakDb

C++
float GetTruePeakDb() const

dBTP, the highest oversampled peak since Init or Reset.

GetHopCount

C++
uint64_t GetHopCount() const

Hops 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