From 5ebdd334bf430180551750a8a9d42c1ab6ada8a3 Mon Sep 17 00:00:00 2001 From: Nilou Date: Sun, 22 Feb 2026 18:47:00 +0100 Subject: [PATCH] suppression de la lecture en boucle des morceaux de phase #142 --- .../assets/morceaux/niveau/forest_phase_1.ogg.import | 2 +- .../assets/morceaux/niveau/forest_phase_2.ogg.import | 2 +- .../assets/morceaux/niveau/mines_phase_1.ogg.import | 2 +- .../assets/morceaux/niveau/mines_phase_2.ogg.import | 2 +- common/audio_manager/audio_manager.tscn | 1 - common/audio_manager/scripts/audio_manager.gd | 4 ++-- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/common/audio_manager/assets/morceaux/niveau/forest_phase_1.ogg.import b/common/audio_manager/assets/morceaux/niveau/forest_phase_1.ogg.import index 55da31a..adfc7b8 100644 --- a/common/audio_manager/assets/morceaux/niveau/forest_phase_1.ogg.import +++ b/common/audio_manager/assets/morceaux/niveau/forest_phase_1.ogg.import @@ -12,7 +12,7 @@ dest_files=["res://.godot/imported/forest_phase_1.ogg-6fd2e255642e47e98a5560b5a2 [params] -loop=true +loop=false loop_offset=0.0 bpm=0.0 beat_count=0 diff --git a/common/audio_manager/assets/morceaux/niveau/forest_phase_2.ogg.import b/common/audio_manager/assets/morceaux/niveau/forest_phase_2.ogg.import index aa8b02d..f7d3fca 100644 --- a/common/audio_manager/assets/morceaux/niveau/forest_phase_2.ogg.import +++ b/common/audio_manager/assets/morceaux/niveau/forest_phase_2.ogg.import @@ -12,7 +12,7 @@ dest_files=["res://.godot/imported/forest_phase_2.ogg-1497e4a80f7f2adb0670888710 [params] -loop=true +loop=false loop_offset=0.0 bpm=0.0 beat_count=0 diff --git a/common/audio_manager/assets/morceaux/niveau/mines_phase_1.ogg.import b/common/audio_manager/assets/morceaux/niveau/mines_phase_1.ogg.import index 561f8f5..ad0376f 100644 --- a/common/audio_manager/assets/morceaux/niveau/mines_phase_1.ogg.import +++ b/common/audio_manager/assets/morceaux/niveau/mines_phase_1.ogg.import @@ -12,7 +12,7 @@ dest_files=["res://.godot/imported/mines_phase_1.ogg-992232f16d175421a148ea48885 [params] -loop=true +loop=false loop_offset=0 bpm=0 beat_count=0 diff --git a/common/audio_manager/assets/morceaux/niveau/mines_phase_2.ogg.import b/common/audio_manager/assets/morceaux/niveau/mines_phase_2.ogg.import index a64d977..d7e770d 100644 --- a/common/audio_manager/assets/morceaux/niveau/mines_phase_2.ogg.import +++ b/common/audio_manager/assets/morceaux/niveau/mines_phase_2.ogg.import @@ -12,7 +12,7 @@ dest_files=["res://.godot/imported/mines_phase_2.ogg-f9104b757c31bcfc711d0517d98 [params] -loop=true +loop=false loop_offset=0 bpm=0 beat_count=0 diff --git a/common/audio_manager/audio_manager.tscn b/common/audio_manager/audio_manager.tscn index ae663b9..573e0a2 100644 --- a/common/audio_manager/audio_manager.tscn +++ b/common/audio_manager/audio_manager.tscn @@ -59,7 +59,6 @@ tags = { "genre": "Soundtrack", "title": "forest_phase_2" } -loop = true [sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_6o1yh"] streams_count = 3 diff --git a/common/audio_manager/scripts/audio_manager.gd b/common/audio_manager/scripts/audio_manager.gd index e9921da..52e59e0 100644 --- a/common/audio_manager/scripts/audio_manager.gd +++ b/common/audio_manager/scripts/audio_manager.gd @@ -4,7 +4,7 @@ class_name AudioManagerInstance const MIN_VOLUME = -60. const MAX_VOLUME = 24. -const DEFAULT_FADE_TIME : float = 2 +const DEFAULT_FADE_TIME : float = 5 const REGION_FIRST_PHASE = [ "RegionForestPhase1", @@ -199,7 +199,7 @@ func play_sfx(sfx_name : String): printerr("Sfx %s not found" % sfx_name) -# ----------------- Partie Technique (pas touche Nils ;D) ---------------- +# ----------------- Partie Technique (pas touche Niels ;D) ---------------- func _ready(): for player in get_all_players():