[][src]Crate ebur128rs

This library contains an implementation of EBU R-128 loudness measurement.

It exposes functions to calculate the loudess of a chunk of audio, plus a higher-level interface that calculates loudness over time according the restrictions defined in EBU R-128.

TODO:

  • Support sample rates other than 48kHz
  • Become agnostic to audio chunk size

Structs

State

Struct that calculates consecutive loudness blocks and offers various loudness calculation types.

Enums

Channel

Enumeration of audio channels in the order they usually appear interleaved.

Ebur128Error

Errors resulting from loudness calculations

GatingType

EBU R-128 specifes that audio shall be split into gating blocks and only those above a threshold shall count towards the loudness. GatingType will determine that threshold in line with the spcification.

Mode

Determines how much history a State will store for future loudness calculations

Functions

calculate_loudness

Calculate the loudness of audio in a single channel

calculate_loudness_interleaved

Calculate the loudness of interleaved audio