Add project settings for AVAudioSessionCategory on iOS

Co-authored-by: Georg Wacker <contact@georgwacker.com>
(cherry picked from commit 739d27ae40)
This commit is contained in:
Cody Roberts 2023-10-15 14:06:11 -04:00 committed by Rémi Verschelde
parent ed0f518181
commit a785276e02
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 42 additions and 2 deletions

View file

@ -1089,6 +1089,10 @@ ProjectSettings::ProjectSettings() {
GLOBAL_DEF("audio/default_bus_layout", "res://default_bus_layout.tres");
custom_prop_info["audio/default_bus_layout"] = PropertyInfo(Variant::STRING, "audio/default_bus_layout", PROPERTY_HINT_FILE, "*.tres");
GLOBAL_DEF("audio/general/ios/session_category", 0);
ProjectSettings::get_singleton()->set_custom_property_info("audio/general/ios/session_category", PropertyInfo(Variant::INT, "audio/general/ios/session_category", PROPERTY_HINT_ENUM, "Ambient,Multi Route,Play and Record,Playback,Record,Solo Ambient"));
GLOBAL_DEF("audio/general/ios/mix_with_others", false);
PoolStringArray extensions = PoolStringArray();
extensions.push_back("gd");
if (Engine::get_singleton()->has_singleton("GodotSharp")) {