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 ​
String | display_name | "" |
float | fade_time | 0.3 |
float | reverb_room_size | 0.5 |
float | music_low_pass_hz | NO_FILTER |
float | music_volume_db | 0.0 |
float | music_reverb | 0.0 |
float | sfx_low_pass_hz | NO_FILTER |
float | sfx_volume_db | 0.0 |
float | sfx_reverb | 0.0 |
float | voice_low_pass_hz | NO_FILTER |
float | voice_volume_db | 0.0 |
float | voice_reverb | 0.0 |
float | ambience_low_pass_hz | NO_FILTER |
float | ambience_volume_db | 0.0 |
float | ambience_reverb | 0.0 |
float | ui_low_pass_hz | NO_FILTER |
float | ui_volume_db | 0.0 |
float | ui_reverb | 0.0 |
Methods ​
float | get_low_pass( bus: String ) |
float | get_volume_db( bus: String ) |
float | get_reverb( bus: String ) |
bool | is_neutral_for( bus: String ) |
AudioProfile | make_underwater() static |
AudioProfile | make_cave() static |
AudioProfile | make_indoors() static |
AudioProfile | make_hall() static |
AudioProfile | make_muffled() static |
Array[AudioProfile] | built_ins() static |
Constants ​
floatNO_FILTER =20500.0- The cutoff of a low-pass filter that lets everything throughArray[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