summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-08-07 22:45:05 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-08-09 18:46:52 +0200
commit160d10dc7b09437d77d46517bc69fd8f0ff6eb73 (patch)
tree7e3e7d270f621f993ea0b175e1fc2811bd21f351 /scene
parentc2eaaef1497f8ad557aea9a14e2b3e0582fcfe54 (diff)
Decrease default AudioStreamPlayer2D/3D panning strength
The default panning strength is now more in line with how other engines play positional sound.
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/audio_stream_player_2d.h2
-rw-r--r--scene/3d/audio_stream_player_3d.h2
2 files changed, 2 insertions, 2 deletions
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;