Skip to content
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

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 7, 2022

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.

@Calinou Calinou requested review from a team as code owners August 7, 2022 20:45
@Calinou Calinou added this to the 4.0 milestone Aug 7, 2022
The default panning strength is now more in line with how other
engines play positional sound.
@Calinou Calinou force-pushed the tweak-audiostreamplayer2d3d-default-panning branch from 2261e17 to 160d10d Compare August 9, 2022 16:47
reduz
reduz previously requested changes Aug 14, 2022
@@ -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;
Copy link
Member

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?

Copy link
Member Author

@Calinou Calinou Aug 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's set here:

cached_global_panning_strength = ProjectSettings::get_singleton()->get("audio/general/3d_panning_strength");

Likewise in 2D:

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.

@Mickeon
Copy link
Contributor

Mickeon commented Nov 15, 2022

I don't see the need for the requested change if there are any, this would nice to have before stable...

@akien-mga akien-mga dismissed reduz’s stale review November 15, 2022 20:48

Nothing to change.

@akien-mga akien-mga merged commit d0025a1 into godotengine:master Nov 15, 2022
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the tweak-audiostreamplayer2d3d-default-panning branch November 15, 2022 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants