You've already forked godot
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user