aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-18 19:20:30 -0700
committerChris Robinson <[email protected]>2017-08-18 19:20:30 -0700
commit5f50d085adbf20dfa07800715762c498a5c87459 (patch)
tree582ea1701e311d2b6d35e0990a407b9bbe6c0614 /OpenAL32
parentf75020da5a56fed275b5dafc7ee3750f85ee957f (diff)
Pass the filter entry to apply to resample_fir4
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index b1c62553..d902a8c4 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -392,10 +392,9 @@ inline ALfloat lerp(ALfloat val1, ALfloat val2, ALfloat mu)
{
return val1 + (val2-val1)*mu;
}
-inline ALfloat resample_fir4(const ALfloat (*restrict filter)[4], ALfloat val0, ALfloat val1, ALfloat val2, ALfloat val3, ALsizei frac)
+inline ALfloat resample_fir4(ALfloat val0, ALfloat val1, ALfloat val2, ALfloat val3, const ALfloat *restrict filter)
{
- return filter[frac][0]*val0 + filter[frac][1]*val1 +
- filter[frac][2]*val2 + filter[frac][3]*val3;
+ return filter[0]*val0 + filter[1]*val1 + filter[2]*val2 + filter[3]*val3;
}