dsound: remove an unnecessary assignment (LLVM/Clang)
Austin English
austinenglish at gmail.com
Mon Jan 30 22:47:46 CST 2012
This value is never read, until it is overwritten by:
/* Resample buffer to temporary buffer specifically allocated for
this purpose, if needed */
DSOUND_MixToTemporary(dsb, dsb->sec_mixpos,
DSOUND_bufpos_to_secpos(dsb, dsb->buf_mixpos+len) - dsb->sec_mixpos);
ibuf = dsb->device->tmp_buffer;
--
-Austin
-------------- next part --------------
diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c
index 23af6ce..7d0ea66 100644
--- a/dlls/dsound/mixer.c
+++ b/dlls/dsound/mixer.c
@@ -482,7 +482,7 @@ static LPBYTE DSOUND_MixerVol(const IDirectSoundBufferImpl *dsb, INT len)
static DWORD DSOUND_MixInBuffer(IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD fraglen)
{
INT len = fraglen, ilen;
- BYTE *ibuf = dsb->buffer->memory + dsb->buf_mixpos, *volbuf;
+ BYTE *ibuf, *volbuf;
DWORD oldpos, mixbufpos;
TRACE("buf_mixpos=%d/%d sec_mixpos=%d/%d\n", dsb->buf_mixpos, dsb->tmp_buffer_len, dsb->sec_mixpos, dsb->buflen);
More information about the wine-patches
mailing list