msadp32.acm: Make destination aligned on destination block size (copy/paste error).
This commit is contained in:
parent
7754f2e78b
commit
e0aee93dc6
|
@ -660,7 +660,7 @@ static LRESULT ADPCM_StreamSize(const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMS
|
|||
if (adss->cbSrcLength % (adsi->pwfxSrc->nBlockAlign * wSamplesPerBlock))
|
||||
/* Round block count up. */
|
||||
nblocks++;
|
||||
adss->cbDstLength = nblocks * adsi->pwfxSrc->nBlockAlign;
|
||||
adss->cbDstLength = nblocks * adsi->pwfxDst->nBlockAlign;
|
||||
}
|
||||
else if (adsi->pwfxSrc->wFormatTag == WAVE_FORMAT_ADPCM &&
|
||||
adsi->pwfxDst->wFormatTag == WAVE_FORMAT_PCM)
|
||||
|
@ -672,7 +672,7 @@ static LRESULT ADPCM_StreamSize(const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMS
|
|||
if (adss->cbSrcLength % adsi->pwfxSrc->nBlockAlign)
|
||||
/* Round block count up. */
|
||||
nblocks++;
|
||||
adss->cbDstLength = nblocks * adsi->pwfxSrc->nBlockAlign * wSamplesPerBlock;
|
||||
adss->cbDstLength = nblocks * adsi->pwfxDst->nBlockAlign * wSamplesPerBlock;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue