audio3d too loud
Asked Answered
A

8

0

It seems be way too loud when it's close by default and I'm not satisfied with this. I want to adjust it to set it's volume to normal when it's close and quieter and unfiltered when it's far away. How can I adjust it?

Antifouling answered 17/4, 2023 at 12:34 Comment(0)
K
0

unit_db and max_db will set how loud the sound is when close. attenuation_model changes how fast or slow the sound gets quieter as you move away. 1 or 2 is probably what you want.

The documentation explains more about what those values mean and the default numbers. I would suggest you load the audio file into Audacity and play with the decibel number so you know what to enter into Godot.

There are also decibel calculators online, which are helpful if you are mixing sounds. https://noisetools.net/decibelcalculator

Kei answered 18/4, 2023 at 7:45 Comment(0)
A
0

bmp

Antifouling answered 17/4, 2023 at 17:52 Comment(0)
A
0

You're using an AudioStreamPlayer3D?
https://docs.godotengine.org/en/3.5/classes/class_audiostreamplayer3d.html

Have you tried adjusting the properties?

Arterial answered 17/4, 2023 at 22:31 Comment(0)
C
0

I know nothing, but maybe the sound's getting normalized when it's imported to Godot. Have you listened to the sound inside Godot editor? Is it louder than the source file outside the project?

Custody answered 17/4, 2023 at 23:8 Comment(0)
A
0

Arterial
yeah but i have no idea what they do

Antifouling answered 18/4, 2023 at 2:12 Comment(0)
A
0

Custody
yes is like 10x louder when its close, louder than the normal volume of non 3d AudioStreamPlayers

Antifouling answered 18/4, 2023 at 2:14 Comment(0)
A
0

Antifouling yeah but i have no idea what they do

Then experiment with them one at a time to see what they do. Be careful not to set the DB too high; that might damage your hardware.

Arterial answered 18/4, 2023 at 2:38 Comment(0)
K
0

unit_db and max_db will set how loud the sound is when close. attenuation_model changes how fast or slow the sound gets quieter as you move away. 1 or 2 is probably what you want.

The documentation explains more about what those values mean and the default numbers. I would suggest you load the audio file into Audacity and play with the decibel number so you know what to enter into Godot.

There are also decibel calculators online, which are helpful if you are mixing sounds. https://noisetools.net/decibelcalculator

Kei answered 18/4, 2023 at 7:45 Comment(0)
A
0

Kei
thnx 4 explaining

Antifouling answered 18/4, 2023 at 8:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.