imaadp32.acm: Fix nibble ordering.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a1c1a4bac
commit
0f0fb98498
|
@ -445,7 +445,7 @@ static void cvtSS16imaK(PACMDRVSTREAMINSTANCE adsi,
|
||||||
&stepIndexL, &sampleL);
|
&stepIndexL, &sampleL);
|
||||||
code2 = generate_nibble(R16(src + (4 * i + 2) * 2),
|
code2 = generate_nibble(R16(src + (4 * i + 2) * 2),
|
||||||
&stepIndexL, &sampleL);
|
&stepIndexL, &sampleL);
|
||||||
*dst++ = (code1 << 4) | code2;
|
*dst++ = (code2 << 4) | code1;
|
||||||
}
|
}
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
|
@ -453,7 +453,7 @@ static void cvtSS16imaK(PACMDRVSTREAMINSTANCE adsi,
|
||||||
&stepIndexR, &sampleR);
|
&stepIndexR, &sampleR);
|
||||||
code2 = generate_nibble(R16(src + (4 * i + 3) * 2),
|
code2 = generate_nibble(R16(src + (4 * i + 3) * 2),
|
||||||
&stepIndexR, &sampleR);
|
&stepIndexR, &sampleR);
|
||||||
*dst++ = (code1 << 4) | code2;
|
*dst++ = (code2 << 4) | code1;
|
||||||
}
|
}
|
||||||
src += 32;
|
src += 32;
|
||||||
}
|
}
|
||||||
|
@ -509,7 +509,7 @@ static void cvtMM16imaK(PACMDRVSTREAMINSTANCE adsi,
|
||||||
src += 2;
|
src += 2;
|
||||||
code2 = generate_nibble(R16(src), &stepIndex, &sample);
|
code2 = generate_nibble(R16(src), &stepIndex, &sample);
|
||||||
src += 2;
|
src += 2;
|
||||||
*dst++ = (code1 << 4) | code2;
|
*dst++ = (code2 << 4) | code1;
|
||||||
}
|
}
|
||||||
dst = in_dst + adsi->pwfxDst->nBlockAlign;
|
dst = in_dst + adsi->pwfxDst->nBlockAlign;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue