diff --git a/config/audio/audio_stream_collection.gd b/config/audio/audio_stream_collection.gd index 59e9d3d4..f28aae4f 100644 --- a/config/audio/audio_stream_collection.gd +++ b/config/audio/audio_stream_collection.gd @@ -3,3 +3,4 @@ extends Resource class_name AudioStreamCollection @export var audios : Array[AudioStream] = [] +@export var db := 0 diff --git a/config/audio/random_audio_stream_player.gd b/config/audio/random_audio_stream_player.gd index 708485fc..2d4effa3 100644 --- a/config/audio/random_audio_stream_player.gd +++ b/config/audio/random_audio_stream_player.gd @@ -15,6 +15,7 @@ func play_random(): return var audio_collection := audio_collections.pick_random() as AudioStreamCollection stream = audio_collection.audios.pick_random() + volume_db = audio_collection.db if stream == null: push_error("empty stream in audio_collection", audio_collection) return diff --git a/config/audio/sfx/footstep_室外.tres b/config/audio/sfx/footstep_室外.tres index e2e5e314..fd99d0e7 100644 --- a/config/audio/sfx/footstep_室外.tres +++ b/config/audio/sfx/footstep_室外.tres @@ -8,3 +8,4 @@ [resource] script = ExtResource("4_6irvv") audios = Array[AudioStream]([ExtResource("1_pfw3x"), ExtResource("2_gcvrs"), ExtResource("3_0un37")]) +db = -7.0 \ No newline at end of file diff --git a/config/audio/sfx/footstep_硬地面.tres b/config/audio/sfx/footstep_硬地面.tres index a6ba5190..a8191959 100644 --- a/config/audio/sfx/footstep_硬地面.tres +++ b/config/audio/sfx/footstep_硬地面.tres @@ -7,3 +7,4 @@ [resource] script = ExtResource("3_ja105") audios = Array[AudioStream]([ExtResource("1_tww7m"), ExtResource("3_05da2")]) +db = -7.0