aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-21 06:27:11 -0800
committerChris Robinson <[email protected]>2021-01-21 06:27:11 -0800
commit19adb622efd84f937c7e1e46f0fbb021f3161b28 (patch)
treea7e0d664239cb6790325b723d5a01b3e2ec2d1de /alc
parentdb4de2b56a597c9997634f58fd3621e087acd825 (diff)
Simplify a division
The division opcode typically also generates the remainder, making the result of x%y free with x/y.
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/wave.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/wave.cpp b/alc/backends/wave.cpp
index 294a0d2d..3c8f9b8f 100644
--- a/alc/backends/wave.cpp
+++ b/alc/backends/wave.cpp
@@ -194,8 +194,8 @@ int WaveBackend::mixerProc()
if(done >= mDevice->Frequency)
{
seconds s{done/mDevice->Frequency};
+ done %= mDevice->Frequency;
start += s;
- done -= mDevice->Frequency*s.count();
}
}