Add () around expression

Fixes #353, closes #389
This commit is contained in:
est31 2022-01-25 06:37:41 +01:00
parent 3aba98639c
commit 1fb86e656d

View file

@ -66,7 +66,7 @@ where
/// Returns the duration elapsed for each sample extracted.
#[inline]
fn get_duration_per_sample(input: &I) -> Duration {
let ns = NANOS_PER_SEC / input.sample_rate() as u64 * input.channels() as u64;
let ns = NANOS_PER_SEC / (input.sample_rate() as u64 * input.channels() as u64);
// \|/ the maximum value of `ns` is one billion, so this can't fail
Duration::new(0, ns as u32)
}