Bumped version and fixed warnings

This commit is contained in:
jan 2024-12-20 15:25:50 +01:00
parent c204a3573a
commit 5689489240
3 changed files with 5 additions and 7 deletions

5
Cargo.lock generated
View File

@ -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]]

View File

@ -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"

View File

@ -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"));