-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudio_constants.gd
More file actions
67 lines (63 loc) · 1.6 KB
/
audio_constants.gd
File metadata and controls
67 lines (63 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (C) 2025 Egor Kostan
# SPDX-License-Identifier: GPL-3.0-or-later
# audio_constants.gd
# Centralized audio bus name constants and config as autoload singleton.
# Use as AudioConstants.BUS_MASTER, etc., to prevent typos and ease renaming.
# Extends Node for autoload compatibility.
extends Node
# --- Audio Bus Names ---
const BUS_MASTER: String = "Master"
const BUS_MUSIC: String = "Music"
const BUS_SFX: String = "SFX"
const BUS_SFX_ROTORS: String = "SFX_Rotors"
const BUS_SFX_WEAPON: String = "SFX_Weapon"
const BUS_SFX_MENU: String = "SFX_Menu"
# --- SFX Asset IDs ---
const SFX_SLIDER: String = "slider"
const SFX_MUTE_TOGGLE: String = "mute_toggle" # For future CheckButton task
const SFX_UI_NAVIGATION: String = "ui_navigation"
# Centralized config with defaults and var mappings
const BUS_CONFIG: Dictionary = {
BUS_MASTER:
{
"volume_var": "master_volume",
"muted_var": "master_muted",
"default_volume": 1.0,
"default_muted": false
},
BUS_MUSIC:
{
"volume_var": "music_volume",
"muted_var": "music_muted",
"default_volume": 1.0,
"default_muted": false
},
BUS_SFX:
{
"volume_var": "sfx_volume",
"muted_var": "sfx_muted",
"default_volume": 1.0,
"default_muted": false
},
BUS_SFX_WEAPON:
{
"volume_var": "weapon_volume",
"muted_var": "weapon_muted",
"default_volume": 1.0,
"default_muted": false
},
BUS_SFX_ROTORS:
{
"volume_var": "rotors_volume",
"muted_var": "rotors_muted",
"default_volume": 1.0,
"default_muted": false
},
BUS_SFX_MENU:
{
"volume_var": "menu_volume",
"muted_var": "menu_muted",
"default_volume": 1.0,
"default_muted": false
}
}