From 6f14678c1d9f76101025f27b5c96df9e0c4ca90f Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 1 Nov 2020 16:55:06 +0000 Subject: [PATCH] wip --- Cargo.toml | 1 + src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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(),