From: Matteo Bruni <mbruni(a)codeweavers.com> --- dlls/dsound/mixer.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 552e11fc361..dbc84cbd04f 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -117,15 +117,10 @@ void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb) * sample in the secondary buffer. firgain specifies what * to multiply the FIR output by in order to attenuate it correctly. */ - if (dsb->freqAdjustNum / dsb->freqAdjustDen > 0) { - /** - * Yes, round it a bit to make sure that the - * linear interpolation factor never changes. - */ + if (dsb->freqAdjustNum > dsb->freqAdjustDen) dsb->firstep = fir_step * dsb->freqAdjustDen / dsb->freqAdjustNum; - } else { + else dsb->firstep = fir_step; - } dsb->firgain = (float)dsb->firstep / fir_step; /* calculate the 10ms write lead */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9438