1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Remove redundant "== false" code

Some of this code has been re-organized.
f
This commit is contained in:
Aaron Franke
2018-10-06 16:20:41 -04:00
parent 37386f112b
commit 4f7b33cdcf
33 changed files with 81 additions and 73 deletions

View File

@@ -796,14 +796,13 @@ Error AudioDriverWASAPI::capture_start() {
return err;
}
if (audio_input.active == false) {
audio_input.audio_client->Start();
audio_input.active = true;
return OK;
if (audio_input.active) {
return FAILED;
}
return FAILED;
audio_input.audio_client->Start();
audio_input.active = true;
return OK;
}
Error AudioDriverWASAPI::capture_stop() {