forked from karx/catbox
Made pathing AsRef but with more bounds due to thread shenanigans, locked behind audio feature
This commit is contained in:
parent
22b71a3ffe
commit
d372aedfa2
|
@ -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"]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue