mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
Now using as_secs_f32()
This commit is contained in:
parent
947c4b7f3e
commit
908ae07a6f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue