diff --git a/Cargo.lock b/Cargo.lock index 762a6ff..4119145 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1955,16 +1955,15 @@ checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" [[package]] name = "rodio" -version = "0.19.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6006a627c1a38d37f3d3a85c6575418cfe34a5392d60a686d0071e1c8d427acb" +checksum = "e7ceb6607dd738c99bc8cb28eff249b7cd5c8ec88b9db96c0608c1480d140fb1" dependencies = [ "claxon", "cpal", "hound", "lewton", "symphonia", - "thiserror 1.0.69", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index f2d8de2..bb85bc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ cpal = { version = "0.15.3", features = ["asio"] } gilrs = { version = "0.11.0"} # There seems to be some incompatibility with the latest crates.io version of pixels? pixels = { git = "https://github.com/parasyte/pixels.git", rev = "d4df286"} -rodio = "0.19.0" +rodio = "0.20.1" thiserror = "2.0.3" winit = "0.29.15" winit-input-map = "0.4.1" diff --git a/src/main.rs b/src/main.rs index 7feb926..50afa06 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,8 +8,7 @@ use cli::Cli; use engine::Engine; use gilrs::Gilrs; use pixels::{Pixels, SurfaceTexture}; -use rodio::{source::Source, Decoder, OutputStream, Sink}; -use std::any::Any; +use rodio::Sink; use std::time::{Duration, Instant}; use utils::*; use winit::dpi::LogicalSize; @@ -30,7 +29,7 @@ fn main() -> Result<()> { let event_loop = EventLoop::new()?; let mut input = WinitInputHelper::new(); let mut gamepad = build_gamepad_map(); - let (audio_strem, audio_player) = rodio::OutputStream::try_default()?; + let (_audio_strem, audio_player) = rodio::OutputStream::try_default()?; let audio_sink = Sink::try_new(&audio_player)?; if cli.scaling < 1 { return Err(anyhow!("The minimal scaling factor is 1"));