Simplify a division
The division opcode typically also generates the remainder, making the result of x%y free with x/y.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user