diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-27 21:06:16 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-28 02:47:18 +0100 |
| commit | 5b2716505d0cfcb71cb7799714970be2255e618f (patch) | |
| tree | f3ea383b49df4d2ace040dbad14c47700fba650a /mumd/src/audio.rs | |
| parent | 7314922fe32ab29757c61ed613b76fb0a0ad78b5 (diff) | |
| download | mum-5b2716505d0cfcb71cb7799714970be2255e618f.tar.gz | |
clearer casting
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index 6d4d71a..812bb4c 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -234,7 +234,7 @@ impl Audio { let mut signal = signal::from_iter(samples.iter().cloned()); let interp = Linear::new(signal.next(), signal.next()); let samples = signal - .from_hz_to_hz(interp, spec.sample_rate.into(), SAMPLE_RATE.into()) + .from_hz_to_hz(interp, spec.sample_rate as f64, SAMPLE_RATE as f64) .until_exhausted() .collect::<Vec<_>>(); (*event, samples) |
