diff --git a/crates/ec-ac3/src/mantissa.rs b/crates/ec-ac3/src/mantissa.rs index 76b405e3..99d2d472 100644 --- a/crates/ec-ac3/src/mantissa.rs +++ b/crates/ec-ac3/src/mantissa.rs @@ -62,7 +62,7 @@ impl Dither { self.mantissa() as f32 / 5_931_008.0 * 1.732_050_8 } - /// ffmpeg's integer dither mantissa at 2^23 full scale: `((x >> 8) * 181 >> 8) - 5931008`. + /// ffmpeg's integer dither mantissa: `((x >> 8) * 181 >> 8) - 5931008`. pub fn mantissa(&mut self) -> i32 { let x = self.next_word(); let u = ((x >> 8) * 181) >> 8; @@ -101,9 +101,9 @@ impl Mantissas { Mantissas::default() } - /// One mantissa in `[-2^23, 2^23)`, before the exponent is applied. + /// One mantissa value in `[-1, 1)`, before the exponent is applied. /// - /// `bap == 0` returns 0; the caller decides whether that bin gets dither, + /// `bap == 0` returns 0.0; the caller decides whether that bin gets dither, /// because in the coupled range the decision belongs to the channel rather /// than to the coupling channel the mantissa came from. pub fn read(&mut self, r: &mut BitReader<'_>, bap: u8) -> Result {