-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decrease default AudioStreamPlayer2D/3D panning strength #64077
Decrease default AudioStreamPlayer2D/3D panning strength #64077
Conversation
The default panning strength is now more in line with how other engines play positional sound.
2261e17
to
160d10d
Compare
@@ -117,7 +117,7 @@ class AudioStreamPlayer3D : public Node3D { | |||
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not seem like this is set anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's set here:
godot/scene/3d/audio_stream_player_3d.cpp
Line 916 in f2a6168
cached_global_panning_strength = ProjectSettings::get_singleton()->get("audio/general/3d_panning_strength"); |
Likewise in 2D:
godot/scene/2d/audio_stream_player_2d.cpp
Line 475 in f2a6168
cached_global_panning_strength = ProjectSettings::get_singleton()->get("audio/general/2d_panning_strength"); |
The value is set to the default in the header to avoid uninitialized data.
I don't see the need for the requested change if there are any, this would nice to have before stable... |
Thanks! |
The default panning strength is now more in line with how other engines play positional sound.
This also improves documentation related to the audio panning strength project settings.
See #58841 where a test project is linked.