diff --git a/src/file_system_interaction/audio.rs b/src/file_system_interaction/audio.rs index 5d81dc13..8d4c84a0 100644 --- a/src/file_system_interaction/audio.rs +++ b/src/file_system_interaction/audio.rs @@ -1,7 +1,5 @@ use crate::file_system_interaction::asset_loading::AudioAssets; -use crate::util::log_error::log_errors; use crate::GameState; -use anyhow::{Context, Result}; use bevy::prelude::*; use bevy_kira_audio::prelude::{Audio, *}; @@ -12,11 +10,7 @@ pub struct InternalAudioPlugin; impl Plugin for InternalAudioPlugin { fn build(&self, app: &mut App) { app.add_plugin(AudioPlugin) - .add_system_set(SystemSet::on_exit(GameState::Loading).with_system(init_audio)) - .add_system_set( - SystemSet::on_update(GameState::Playing) - .with_system(pause_audio_when_time_is_paused.pipe(log_errors)), - ); + .add_system_set(SystemSet::on_exit(GameState::Loading).with_system(init_audio)); } } @@ -34,21 +28,3 @@ fn init_audio(mut commands: Commands, audio_assets: Res, audio: Res .handle(); commands.insert_resource(AudioHandles { walking: handle }); } - -fn pause_audio_when_time_is_paused( - time: Res