1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Request mic access only when is needed

This commit is contained in:
volzhs
2018-12-14 00:35:01 +09:00
parent 199c294d4c
commit 7d387dc63f
4 changed files with 15 additions and 1 deletions

View File

@@ -172,6 +172,7 @@ int AudioDriverManager::get_driver_count() {
}
void AudioDriverManager::initialize(int p_driver) {
GLOBAL_DEF_RST("audio/enable_audio_input", false);
int failed_driver = -1;
// Check if there is a selected driver