1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Add project settings for AVAudioSessionCategory on iOS

Co-authored-by: Georg Wacker <contact@georgwacker.com>
This commit is contained in:
Cody Roberts
2023-10-15 14:06:11 -04:00
committed by Rémi Verschelde
parent e22335ec72
commit 739d27ae40
3 changed files with 42 additions and 2 deletions

View File

@@ -1095,6 +1095,10 @@ ProjectSettings::ProjectSettings() {
GLOBAL_DEF_RST("audio/general/text_to_speech", false);
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")) {