From 160d10dc7b09437d77d46517bc69fd8f0ff6eb73 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 7 Aug 2022 22:45:05 +0200 Subject: Decrease default AudioStreamPlayer2D/3D panning strength The default panning strength is now more in line with how other engines play positional sound. --- scene/2d/audio_stream_player_2d.h | 2 +- scene/3d/audio_stream_player_3d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scene') diff --git a/scene/2d/audio_stream_player_2d.h b/scene/2d/audio_stream_player_2d.h index d1c4dc4fdf..c771bb6d5f 100644 --- a/scene/2d/audio_stream_player_2d.h +++ b/scene/2d/audio_stream_player_2d.h @@ -82,7 +82,7 @@ private: float attenuation = 1.0; float panning_strength = 1.0f; - float cached_global_panning_strength = 1.0f; + float cached_global_panning_strength = 0.5f; protected: void _validate_property(PropertyInfo &property) const override; diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h index 647b18a4a7..144b647127 100644 --- a/scene/3d/audio_stream_player_3d.h +++ b/scene/3d/audio_stream_player_3d.h @@ -117,7 +117,7 @@ private: float _get_attenuation_db(float p_distance) const; float panning_strength = 1.0f; - float cached_global_panning_strength = 1.0f; + float cached_global_panning_strength = 0.5f; protected: void _validate_property(PropertyInfo &property) const override; -- cgit v1.2.3