From: Anton Baskanov <baskanov@gmail.com> --- dlls/dsound/dsound_private.h | 2 +- dlls/dsound/mixer.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index 7f38d223767..c569aa64eb5 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -162,7 +162,7 @@ struct IDirectSoundBufferImpl BOOL ds3db_need_recalc; /* Used for bit depth conversion */ int mix_channels; - bitsgetfunc get, get_aux; + bitsgetfunc get; bitsputfunc put, put_aux; int num_filters; DSFilter* filters; diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 6bded757739..7234394e8df 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -137,10 +137,9 @@ void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb) dsb->freqAccNum = (dsb->freqAccNum * (LONG64)dsb->freqAdjustDen + oldFreqAdjustDen / 2) / oldFreqAdjustDen; - dsb->get_aux = ieee ? getieee32 : getbpp[dsb->pwfx->wBitsPerSample/8 - 1]; dsb->put_aux = putieee32; - dsb->get = dsb->get_aux; + dsb->get = ieee ? getieee32 : getbpp[dsb->pwfx->wBitsPerSample/8 - 1]; dsb->put = dsb->put_aux; if (ichannels == ochannels) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11082