diff --git a/crates/audio/src/music.rs b/crates/audio/src/music.rs index d845a806c..9fb02ad98 100644 --- a/crates/audio/src/music.rs +++ b/crates/audio/src/music.rs @@ -1,4 +1,4 @@ -use bevy::{asset::LoadState, prelude::*}; +use bevy::{asset::LoadState, audio::Volume, prelude::*}; use de_conf::Configuration; use de_core::state::AppState; use iyes_progress::prelude::*; @@ -12,7 +12,7 @@ impl Plugin for MusicPlugin { Update, load.track_progress().run_if(in_state(AppState::AppLoading)), ) - .add_systems(Update, start.in_schedule(OnExit(AppState::AppLoading))); + .add_systems(OnExit(AppState::AppLoading), start); } } @@ -31,12 +31,14 @@ fn load(server: Res, tracks: Res) -> Progress { } } -fn start(audio: Res