msadp32: Block align size is proportional to the number of channels.
This commit is contained in:
parent
c262d5b649
commit
279e797cb2
|
@ -162,10 +162,10 @@ static void init_wfx_adpcm(ADPCMWAVEFORMAT* awfx)
|
||||||
|
|
||||||
switch (pwfx->nSamplesPerSec)
|
switch (pwfx->nSamplesPerSec)
|
||||||
{
|
{
|
||||||
case 8000: pwfx->nBlockAlign = 256; break;
|
case 8000: pwfx->nBlockAlign = 256 * pwfx->nChannels; break;
|
||||||
case 11025: pwfx->nBlockAlign = 256; break;
|
case 11025: pwfx->nBlockAlign = 256 * pwfx->nChannels; break;
|
||||||
case 22050: pwfx->nBlockAlign = 512; break;
|
case 22050: pwfx->nBlockAlign = 512 * pwfx->nChannels; break;
|
||||||
case 44100: pwfx->nBlockAlign = 1024; break;
|
case 44100: pwfx->nBlockAlign = 1024 * pwfx->nChannels; break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
pwfx->cbSize = 2 * sizeof(WORD) + 7 * sizeof(ADPCMCOEFSET);
|
pwfx->cbSize = 2 * sizeof(WORD) + 7 * sizeof(ADPCMCOEFSET);
|
||||||
|
|
Loading…
Reference in New Issue