From a8a3a6ec3eaeac2c3a15c7a5db3dd440ff16d3d2 Mon Sep 17 00:00:00 2001 From: Christian Kohlstedde Date: Wed, 25 Aug 2021 00:06:39 +0200 Subject: [PATCH] ebur128level: Fix mode bitflags Currently the flag of true peak and sample peak are the same and therefore true peak always wins, sample peak never. --- audio/audiofx/src/ebur128level/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs index 8b9d7236..c1641073 100644 --- a/audio/audiofx/src/ebur128level/imp.rs +++ b/audio/audiofx/src/ebur128level/imp.rs @@ -47,7 +47,7 @@ enum Mode { #[gflags(name = "Calculate loudness range", nick = "loudness-range")] LOUDNESS_RANGE = 0b00001000, #[gflags(name = "Calculate sample peak", nick = "sample-peak")] - SAMPLE_PEAK = 0b000100000, + SAMPLE_PEAK = 0b00010000, #[gflags(name = "Calculate true peak", nick = "true-peak")] TRUE_PEAK = 0b00100000, }