Skip to content

AudioProfileStack ​

Inherits: RefCounted

The audio profile that is on now. Audio zones and movement volumes tell it when the camera enters and leaves them; with several around the camera (a flooded cellar in a house) the one entered last decides, and when it is left the one before it comes back. The sound changes with a fade.

Description ​

The profile is made of effects the stack puts on the buses (a low-pass filter, an amplifier for the volume offset, a reverb), so the volumes the player chose in the settings are never touched. The effects are taken off again when the profile is neutral for a bus.

Methods ​

voidenter( source: Object, profile: AudioProfile ) static
voidleave( source: Object ) static
AudioProfileget_active_profile() static
Dictionaryget_applied( bus: String ) static
boolhas_effects_on( bus: String ) static
voidreset() static

Method descriptions ​

void enter( source: Object, profile: AudioProfile ) ​

The camera went inside a place with this profile (the source is the zone or volume)

void leave( source: Object ) ​

The camera left a place

AudioProfile get_active_profile() ​

The profile that decides now (the one entered last), or null

Dictionary get_applied( bus: String ) ​

What is applied to a bus right now (it moves during a fade): low_pass, volume_db and reverb

bool has_effects_on( bus: String ) ​

Is the sound of this bus changed now (an effect of the stack is on it)?

void reset() ​

Forgets every place and puts the sound back at once (a scene that is left)