Fix block align error message to show length before fix up.

This commit is contained in:
Robert Reif 2005-03-19 17:09:33 +00:00 committed by Alexandre Julliard
parent fd40ace3d3
commit 1e17a784c6
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ static DWORD DSOUND_MixInBuffer(IDirectSoundBufferImpl *dsb, DWORD writepos, DWO
if (len % dsb->dsound->pwfx->nBlockAlign) {
INT nBlockAlign = dsb->dsound->pwfx->nBlockAlign;
len = (len / nBlockAlign) * nBlockAlign; /* data alignment */
ERR("length not a multiple of block size, len = %d, block size = %d\n", len, nBlockAlign);
len = (len / nBlockAlign) * nBlockAlign; /* data alignment */
}
if (len == 0) {
@ -505,8 +505,8 @@ static void DSOUND_PhaseCancel(IDirectSoundBufferImpl *dsb, DWORD writepos, DWOR
if (len % dsb->dsound->pwfx->nBlockAlign) {
INT nBlockAlign = dsb->dsound->pwfx->nBlockAlign;
len = (len / nBlockAlign) * nBlockAlign; /* data alignment */
ERR("length not a multiple of block size, len = %ld, block size = %d\n", len, nBlockAlign);
len = (len / nBlockAlign) * nBlockAlign; /* data alignment */
}
if ((buf = ibuf = DSOUND_tmpbuffer(dsb->dsound, len)) == NULL)