Commit 279e797c authored by Stefano Guidoni's avatar Stefano Guidoni Committed by Alexandre Julliard

msadp32: Block align size is proportional to the number of channels.

parent c262d5b6
......@@ -162,10 +162,10 @@ static void init_wfx_adpcm(ADPCMWAVEFORMAT* awfx)
switch (pwfx->nSamplesPerSec)
{
case 8000: pwfx->nBlockAlign = 256; break;
case 11025: pwfx->nBlockAlign = 256; break;
case 22050: pwfx->nBlockAlign = 512; break;
case 44100: pwfx->nBlockAlign = 1024; break;
case 8000: pwfx->nBlockAlign = 256 * pwfx->nChannels; break;
case 11025: pwfx->nBlockAlign = 256 * pwfx->nChannels; break;
case 22050: pwfx->nBlockAlign = 512 * pwfx->nChannels; break;
case 44100: pwfx->nBlockAlign = 1024 * pwfx->nChannels; break;
default: break;
}
pwfx->cbSize = 2 * sizeof(WORD) + 7 * sizeof(ADPCMCOEFSET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment