Skip to content

AudioProfile ​

Inherits: Resource

How the sound of the game changes in a place: for each audio channel (music, sound effects, voices, ambience, interface sounds) a low-pass filter that muffles it, a volume offset and a reverb. An AudioZone (a cave, a house) and a MovementVolume (water) hold one and apply it while the camera is inside. The settings of the player are never touched: the changes are effects on the buses, on top of the volumes the player chose.

Description ​

Make your own with Create New Resource > AudioProfile, or start from one of the three that the toolkit makes: make_underwater(), make_cave() and make_indoors().

Properties ​

Stringdisplay_name""
floatfade_time0.3
floatreverb_room_size0.5
floatmusic_low_pass_hzNO_FILTER
floatmusic_volume_db0.0
floatmusic_reverb0.0
floatsfx_low_pass_hzNO_FILTER
floatsfx_volume_db0.0
floatsfx_reverb0.0
floatvoice_low_pass_hzNO_FILTER
floatvoice_volume_db0.0
floatvoice_reverb0.0
floatambience_low_pass_hzNO_FILTER
floatambience_volume_db0.0
floatambience_reverb0.0
floatui_low_pass_hzNO_FILTER
floatui_volume_db0.0
floatui_reverb0.0

Methods ​

floatget_low_pass( bus: String )
floatget_volume_db( bus: String )
floatget_reverb( bus: String )
boolis_neutral_for( bus: String )
AudioProfilemake_underwater() static
AudioProfilemake_cave() static
AudioProfilemake_indoors() static
AudioProfilemake_hall() static
AudioProfilemake_muffled() static
Array[AudioProfile]built_ins() static

Constants ​

  • float NO_FILTER = 20500.0 - The cutoff of a low-pass filter that lets everything through
  • Array[String] BUSES = ["Music", "SFX", "Voice", "Ambience", "UI"] - The audio channels a profile has settings for, as the names of the buses

Property descriptions ​

String display_name = "" ​

A name for the profile (shown nowhere in the game: for you)

float fade_time = 0.3 ​

How long (seconds) the sound takes to change when the camera enters or leaves, so there is no click

float reverb_room_size = 0.5 ​

How big the room of the reverb is (small = a closet, large = a cavern). Only used by the channels with a reverb

Music

float music_low_pass_hz = NO_FILTER ​

Frequencies above this are cut (lower = more muffled). The top value cuts nothing

float music_volume_db = 0.0 ​

Added to the volume of the channel (dB; negative = quieter)

float music_reverb = 0.0 ​

How much reverb the channel gets (0 = none)

Sound effects

float sfx_low_pass_hz = NO_FILTER ​

Frequencies above this are cut (lower = more muffled). The top value cuts nothing

float sfx_volume_db = 0.0 ​

Added to the volume of the channel (dB; negative = quieter)

float sfx_reverb = 0.0 ​

How much reverb the channel gets (0 = none)

Voice

float voice_low_pass_hz = NO_FILTER ​

Frequencies above this are cut (lower = more muffled). The top value cuts nothing

float voice_volume_db = 0.0 ​

Added to the volume of the channel (dB; negative = quieter)

float voice_reverb = 0.0 ​

How much reverb the channel gets (0 = none)

Ambience

float ambience_low_pass_hz = NO_FILTER ​

Frequencies above this are cut (lower = more muffled). The top value cuts nothing

float ambience_volume_db = 0.0 ​

Added to the volume of the channel (dB; negative = quieter)

float ambience_reverb = 0.0 ​

How much reverb the channel gets (0 = none)

Interface

float ui_low_pass_hz = NO_FILTER ​

Frequencies above this are cut (lower = more muffled). The top value cuts nothing

float ui_volume_db = 0.0 ​

Added to the volume of the channel (dB; negative = quieter)

float ui_reverb = 0.0 ​

How much reverb the channel gets (0 = none)

Method descriptions ​

float get_low_pass( bus: String ) ​

The low-pass cutoff the profile gives a channel (the name of its bus: Music, SFX, Voice, Ambience, UI)

float get_volume_db( bus: String ) ​

The volume offset (dB) the profile gives a channel

float get_reverb( bus: String ) ​

The reverb the profile gives a channel (0 = none)

bool is_neutral_for( bus: String ) ​

Does the profile leave this channel as it is?

AudioProfile make_underwater() ​

Under water: everything the world makes is muffled, the interface is not

AudioProfile make_cave() ​

In a cave: echo on the sounds of the world, a little less of the music and the high end of the ambience

AudioProfile make_indoors() ​

Indoors: the ambience of the outside is muffled and quieter, a short reverb on the sounds of the room

AudioProfile make_hall() ​

A big hall or a cathedral: a long echo on everything the room makes

AudioProfile make_muffled() ​

Behind a wall: everything of the world is dull and quiet (a muffled party next door), the interface is not

Array[AudioProfile] built_ins() ​

The profiles the toolkit ships, in the order of the preset menu