0 votes

Is there a way to make AudioStreamPlayer3D less spatial? For example, when I turn my right toward the source, I don't hear anything from left. I still want to hear from my left though a bit quieter. I'm asking this for ambient sound if anyone is wondering.

in Engine by (18 points)

1 Answer

+1 vote

I have found the following code in audio_stream_player_3d.cpp:

_calc_output_vol(local_pos.normalized(), 4.0, output);

Information about the second parameter is given:

The lower the second parameter (tightness) the more the sound will "enclose" the listener (more undirected / playing from speakers not facing the source) - this could be made distance dependent.

Added a new property for the second parameter. When the value is zero, the sound has no directivity. This should be a function of the distance but works well for now. Hope this will get implemented soon.

by (18 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.