## If enabled, it will default to an [color=#f00] AudioStreamPlayer3D [/color] [br]
## If disabled, it will use [color=#ff0]SpatialAudio3D [/color]
@exportvareasy_audio:bool=true:
set(value):
easy_audio=value
ifvalue:
set_to_easy_audio()
else:
set_to_raytraced_audio()
@export_group("SpatialAudio3D properties")
@export_subgroup("Sound Properties")
@exportvarreverb_enabled:bool=true## Enable reverb-effects with all its computations.[br][br]Disable if you just need it for occlusion detection, for example fading ambient rain when entering a house.
@export_range(-81,+80,3.0,"suffix:dB")varreverb_volume_db:float=-6## Maximum volume of the reverbs.
@export_range(-1,5,0.05,"or_greater","suffix:s")varreverb_fadeintime:float=2.0## Fade-in time when a reverb is added at a wall.[br][br]The default of 2s is a good value where changes in environment merge well into the overall sound mix.[br]If you have small areas with little changes of distances, set this value to low (0.2s) so that repositioned reverbs don't get stuck for too long in a position. In a large area, when the raycast suddenly hits a close wall, the sudden appearing reverb can sound unnatural.[br][br]Set to -1 for dynamic fade time (based on wetness).
@export_range(-1,8,0.05,"or_greater","suffix:s")varreverb_fadeouttime:float=2.0## Fade-out time when a reverb is removed.[br][br]The default of 2s is a good value where changes in environment merge well into the overall sound mix.[br]If you have small areas with little changes of distances, set this value to low (0.2s) so that repositioned reverbs don't get stuck for too long in a position.[br][br]Set to -1 for dynamic fade time (based on wetness).
@export_range(1,20_000,0.1,"suffix:Hz")varocclusion_lp_cutoff:int=600## Frequency when soundsource is occluded behind walls.
@export_range(0,5,0.05,"or_greater","suffix:s")varocclusion_fadetime:float=0.5## Fadetime when occlusion changes.
@export_range(0,100,0.1,"or_greater","suffix:m")varbass_proximity:int=50## The closer you are to a wall, the more bass you will hear.[br][br]The effect starts at this value (distance to the wall).[br][br]0 to disable.
@export_subgroup("Physics")
@export_range(1,100,1,"or_greater","suffix:m")varmax_raycast_distance:int=100## Maximum distance for the reverb raycasts.
@export_flags_3d_physicsvarcollision_mask:int=1## Mask for the raycast where to add reverb.
@exportvarroomsize_multiplicator:float=6.0## How much hall to add compared to room size.[br]Sometimes you have a small room but you need a long reverb.
@export_range(1,340,1,"or_greater","suffix:m/s")varspeed_of_sound:int=340## How fast sound travels through the air.
@exportvarprox_reduction:float=24.0## How much proximity reduces the reverb
@export_range(4,32,1)varreverb_raycast_count:int=4##how many reverb raycasts to shoot out horizontally
@export_subgroup("System")
@export_range(1,60,0.1,"or_greater","suffix:per second")varaudiophysics_ticks:int=10## The number of audio physics calculations per second.[br]Tied to _physics_process().[br][br]Use 30-60 for fast moving sounds like a motorcycle passing by.[br][br]Default: 10.