Fix minor beat_detection warnings
This commit is contained in:
parent
971e2a61f6
commit
1ebe1d0323
@ -2,7 +2,7 @@ use anyhow::{anyhow, Result};
|
|||||||
use psimple::Simple;
|
use psimple::Simple;
|
||||||
use pulse::context::{Context, FlagSet as ContextFlagSet};
|
use pulse::context::{Context, FlagSet as ContextFlagSet};
|
||||||
use pulse::mainloop::standard::{IterateResult, Mainloop};
|
use pulse::mainloop::standard::{IterateResult, Mainloop};
|
||||||
use pulse::sample::{Format, Spec};
|
use pulse::sample::Spec;
|
||||||
use pulse::stream::Direction;
|
use pulse::stream::Direction;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
@ -133,7 +133,7 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
y = (1f32 + y).log2();
|
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
|
((1f32 - y) * texture_size as f32) as u32
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user