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

Fixes https://github.com/godotengine/godot/issues/73801
This commit is contained in:
Fredia Huya-Kouadio
2023-05-31 00:58:27 -07:00
parent 72f7131be1
commit 8ca14183f0
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() {