aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-11 10:55:35 -0800
committerChris Robinson <[email protected]>2018-01-11 10:55:35 -0800
commit2873abcbc056ca2123382b2b1e08b8bd94d608a4 (patch)
treedfaaa84add6095c352acc1086b1a0c22899777cd /Alc/bformatdec.c
parente89c183231d26770f4c8ae80a8d05063c34cf0c9 (diff)
Fix up some types for MSVC
Diffstat (limited to 'Alc/bformatdec.c')
-rw-r--r--Alc/bformatdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/bformatdec.c b/Alc/bformatdec.c
index 3efdfba9..6503ac65 100644
--- a/Alc/bformatdec.c
+++ b/Alc/bformatdec.c
@@ -532,7 +532,7 @@ void ambiup_free(struct AmbiUpsampler *ambiup)
void ambiup_reset(struct AmbiUpsampler *ambiup, const ALCdevice *device)
{
ALfloat ratio;
- size_t i;
+ ALsizei i;
ratio = 400.0f / (ALfloat)device->Frequency;
for(i = 0;i < 4;i++)
@@ -545,11 +545,11 @@ void ambiup_reset(struct AmbiUpsampler *ambiup, const ALCdevice *device)
ALsizei j;
size_t k;
- for(i = 0;i < COUNTOF(Ambi3DPoints);i++)
+ for(k = 0;k < COUNTOF(Ambi3DPoints);k++)
{
ALfloat coeffs[MAX_AMBI_COEFFS] = { 0.0f };
- CalcDirectionCoeffs(Ambi3DPoints[i], 0.0f, coeffs);
- ComputeDryPanGains(&device->Dry, coeffs, 1.0f, encgains[i]);
+ CalcDirectionCoeffs(Ambi3DPoints[k], 0.0f, coeffs);
+ ComputeDryPanGains(&device->Dry, coeffs, 1.0f, encgains[k]);
}
/* Combine the matrices that do the in->virt and virt->out conversions