diff --git a/Cargo.toml b/Cargo.toml index 11e0dd8..c4062d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,4 @@ crate_type = "bin" dirs = "^3.0.1" iced = "^0.1.1" rodio = "^0.11.0" +env_logger = "^0.8.1" diff --git a/src/main.rs b/src/main.rs index 39bafdf..549c1a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,7 @@ struct Sound { name: String, path: String, // bytes instead? sink: Sink, + volume: f32, } /// todo: maybe add a play/pause state or global volume? saved presets? @@ -31,7 +32,7 @@ impl Application for Lull { type Message = Message; type Flags = (); - fn new(flags: Self::Flags) -> (Self, Command) { + fn new(_flags: Self::Flags) -> (Self, Command) { ( Lull {sounds: Vec::new()}, Command::none(),