Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
parent
37386f112b
commit
4f7b33cdcf
33 changed files with 81 additions and 73 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue