Made pathing AsRef but with more bounds due to thread shenanigans, locked behind audio feature

This commit is contained in:
gallant 2022-10-02 23:50:54 -05:00
parent 22b71a3ffe
commit d372aedfa2
2 changed files with 3 additions and 2 deletions

View File

@ -15,9 +15,9 @@ version = "0.35.2"
features = ["image", "ttf"]
[dependencies]
rodio = { version = "0.11.1", optional = true}
rodio = { version = "0.15.0", optional = true}
[features]
default = []
default = ["audio"]
static = ["sdl2/static-link", "sdl2/bundled"]
audio = ["dep:rodio"]

View File

@ -114,6 +114,7 @@ use sdl2::{
};
use std::fs::File;
use std::io::BufReader;
#[cfg(feature = "audio")]
use rodio::{self, Decoder, OutputStream, source::Source};
use vec2::Vec2Int;