Commit 2ac2bd26 authored by Max Kellermann's avatar Max Kellermann

output/wasapi: combine two `if` statements to one `switch`

parent a2be91ae
......@@ -354,17 +354,24 @@ try {
event.Wait();
Status current_state = status.load();
if (current_state == Status::FINISH) {
switch (current_state) {
case Status::FINISH:
FormatDebug(wasapi_output_domain,
"Working thread stopped");
return;
}
if (!started && current_state != Status::PLAY)
/* don't bother starting the IAudioClient if
we're paused */
case Status::PAUSE:
if (!started)
/* don't bother starting the
IAudioClient if we're paused */
continue;
break;
case Status::PLAY:
break;
}
UINT32 write_in_frames = buffer_size_in_frames;
if (!is_exclusive) {
UINT32 data_in_frames =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment