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.

asked Mar 16 in Engine by mss1451 (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.

answered Mar 16 by mss1451 (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.