Sebastian Lackner : dsound: Get rid of no longer needed mix_buffer_len field.
Module: wine Branch: master Commit: 65bab6a5fe6cab4d810b2c23b62a6a5b320e169b URL: http://source.winehq.org/git/wine.git/?a=commit;h=65bab6a5fe6cab4d810b2c23b6... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Sun May 15 02:15:52 2016 +0200 dsound: Get rid of no longer needed mix_buffer_len field. This was missing in 09890d7142a2c612b025ab9ff60358d036f9999b. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dsound/dsound_private.h | 2 +- dlls/dsound/primary.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index b980453..8bf9c9d 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -88,7 +88,7 @@ struct DirectSoundDevice int num_speakers; int lfe_channel; float *tmp_buffer; - DWORD tmp_buffer_len, mix_buffer_len; + DWORD tmp_buffer_len; DSVOLUMEPAN volpan; diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index 1925d0c..a5fe039 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -338,8 +338,6 @@ HRESULT DSOUND_PrimaryOpen(DirectSoundDevice *device) device->buflen = ds_hel_buflen; device->buflen -= device->buflen % device->pwfx->nBlockAlign; - device->mix_buffer_len = (device->buflen / (device->pwfx->wBitsPerSample / 8)) * sizeof(float); - if (device->state == STATE_PLAYING) device->state = STATE_STARTING; else if (device->state == STATE_STOPPING) device->state = STATE_STOPPED; @@ -359,8 +357,7 @@ HRESULT DSOUND_PrimaryOpen(DirectSoundDevice *device) device->buffer = newbuf; - TRACE("buflen: %u, fraglen: %u, mix_buffer_len: %u\n", - device->buflen, device->fraglen, device->mix_buffer_len); + TRACE("buflen: %u, fraglen: %u\n", device->buflen, device->fraglen); if(device->pwfx->wFormatTag == WAVE_FORMAT_IEEE_FLOAT || (device->pwfx->wFormatTag == WAVE_FORMAT_EXTENSIBLE &&
participants (1)
-
Alexandre Julliard