Fix minor beat_detection warnings

This commit is contained in:
Kai Vogelgesang 2021-10-27 13:57:46 +02:00
parent 971e2a61f6
commit 1ebe1d0323
Signed by: kai
GPG Key ID: 0A95D3B6E62C0879
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ use anyhow::{anyhow, Result};
use psimple::Simple;
use pulse::context::{Context, FlagSet as ContextFlagSet};
use pulse::mainloop::standard::{IterateResult, Mainloop};
use pulse::sample::{Format, Spec};
use pulse::sample::Spec;
use pulse::stream::Direction;
use std::cell::RefCell;
use std::ops::Deref;

View File

@ -133,7 +133,7 @@ fn main() -> Result<()> {
y = (1f32 + y).log2();
let mut y = (y - min_y) / (max_y - min_y);
let y = (y - min_y) / (max_y - min_y);
((1f32 - y) * texture_size as f32) as u32
};