From 6328756c2b11125d14f3c517370736b9f7d154fb Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sun, 6 Oct 2024 17:36:58 +0200 Subject: [PATCH] sound ? --- src/start_state.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/start_state.rs b/src/start_state.rs index 2e0df42..4657b3e 100644 --- a/src/start_state.rs +++ b/src/start_state.rs @@ -8,9 +8,10 @@ use crate::PlayerState; pub fn audio_setup(asset_server: Res, mut commands: Commands) { commands.spawn(AudioBundle { - source: asset_server.load("assets/Banjo.ogg"), - ..default() + source: asset_server.load("Banjo.ogg"), + settings: PlaybackSettings::LOOP, }); + info!("audio started"); } pub fn setup(mut commands: Commands, _asset_server: Res) {