diff options
author | Ellen Poe <ellen@ellenhp.me> | 2022-03-06 08:53:56 -0800 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2022-06-17 13:08:48 +0200 |
commit | d384d84f45dfc82fa64e082213382c78bbac3aaa (patch) | |
tree | d4af54d083f1cb11c1fc9179a021878d11e805a8 /core/config | |
parent | 78944fef820b7df87ca73d89169e68639ceef8e9 (diff) |
Audio: Expose 2D/3D panning strength parameters
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/project_settings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 12d936d456..c65a2a5bc6 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -1200,6 +1200,10 @@ ProjectSettings::ProjectSettings() { GLOBAL_DEF_BASIC("audio/buses/default_bus_layout", "res://default_bus_layout.tres"); custom_prop_info["audio/buses/default_bus_layout"] = PropertyInfo(Variant::STRING, "audio/buses/default_bus_layout", PROPERTY_HINT_FILE, "*.tres"); + GLOBAL_DEF_RST("audio/general/2d_panning_strength", 1.0f); + custom_prop_info["audio/general/2d_panning_strength"] = PropertyInfo(Variant::FLOAT, "audio/general/2d_panning_strength", PROPERTY_HINT_RANGE, "0,4,0.01"); + GLOBAL_DEF_RST("audio/general/3d_panning_strength", 1.0f); + custom_prop_info["audio/general/3d_panning_strength"] = PropertyInfo(Variant::FLOAT, "audio/general/3d_panning_strength", PROPERTY_HINT_RANGE, "0,4,0.01"); PackedStringArray extensions = PackedStringArray(); extensions.push_back("gd"); |