Fix issue causing the Android editor to crash when creating a new AudioStreamMicrophone

Fixes https://github.com/godotengine/godot/issues/73801

(cherry picked from commit 8ca14183f0)
This commit is contained in:
Fredia Huya-Kouadio 2023-07-20 12:45:54 +02:00 committed by Yuri Sizov
parent 2dfb108a6a
commit db7406e6a7
6 changed files with 87 additions and 17 deletions

View file

@ -272,7 +272,8 @@ Error AudioDriverOpenSL::input_start() {
return init_input_device();
}
return OK;
WARN_PRINT("Unable to start audio capture - No RECORD_AUDIO permission");
return ERR_UNAUTHORIZED;
}
Error AudioDriverOpenSL::input_stop() {