Skip to content

Commit

Permalink
Fix derpy mod check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Oct 29, 2023
1 parent b178260 commit bbb8281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/audio_wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool WASAPIBackend::init(float sample_rate, unsigned channels)
}

// Sanity check, but you'd think default period should "just werk".
if (fundamental_period == 0 && default_period % fundamental_period != 0)
if (fundamental_period != 0 && default_period % fundamental_period != 0)
{
LOGE("WASAPI: Nonsensical default period.\n");
return false;
Expand Down

0 comments on commit bbb8281

Please sign in to comment.