From 5f50d085adbf20dfa07800715762c498a5c87459 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 18 Aug 2017 19:20:30 -0700 Subject: Pass the filter entry to apply to resample_fir4 --- OpenAL32/Include/alu.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include/alu.h') 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; } -- cgit v1.2.3