GstEnginePipeline: actually perform (EBU R 128) loudness normalization

The magic: if EBU R 128 loudness normalization is enabled,
just insert `volume` GST element into the pipeline
(where ReplayGain would be inserted) and configure it.

We currently don't support changing said gain after the pipeline
was created. We might need to, though, for a number of reasons.
This commit is contained in:
Roman Lebedev
2023-06-27 05:06:10 +03:00
committed by Jonas Kvinge
parent e3a333564a
commit 94ab788032
2 changed files with 27 additions and 1 deletions

View File

@@ -301,6 +301,7 @@ class GstEnginePipeline : public QObject {
GstElement *audiosink_;
GstElement *audioqueue_;
GstElement *audioqueueconverter_;
GstElement *ebur128_volume_;
GstElement *volume_;
GstElement *volume_sw_;
GstElement *volume_fading_;