Now using as_secs_f32()

This commit is contained in:
Jamie Hardt 2024-07-14 10:59:11 -07:00
parent 947c4b7f3e
commit 908ae07a6f

View file

@ -15,8 +15,8 @@ where
I: Source,
I::Item: Sample,
{
let duration_nanos = duration.as_secs() * 1000000000 + duration.subsec_nanos() as u64;
assert!(duration_nanos > 0);
let duration_nanos = duration.as_secs_f32();
assert!(duration_nanos > 0.0f32);
LinearGainRamp {
input,