From 7b95753cf760edf7fe5fd4ce13e9f4bc0c08a9d9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 Mar 2018 23:10:12 -0700 Subject: Fix typo (Substraction -> Subtraction) and rename related function --- Alc/effects/pshifter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Alc/effects/pshifter.c b/Alc/effects/pshifter.c index e38f4ed2..641df2f3 100644 --- a/Alc/effects/pshifter.c +++ b/Alc/effects/pshifter.c @@ -123,8 +123,8 @@ static inline ALcomplex complex_add( ALcomplex a, ALcomplex b ) return result; } -/* Substraction of two complex numbers (ALcomplex format)*/ -static inline ALcomplex complex_subst( ALcomplex a, ALcomplex b ) +/* Subtraction of two complex numbers (ALcomplex format)*/ +static inline ALcomplex complex_sub( ALcomplex a, ALcomplex b ) { ALcomplex result; @@ -192,7 +192,7 @@ static inline ALvoid FFT(ALcomplex *FFTBuffer, ALsizei FFTSize, ALint Sign) for ( k = j; k < FFTSize; k += step ) { temp = complex_mult( FFTBuffer[k+step2], u ); - FFTBuffer[k+step2] = complex_subst( FFTBuffer[k], temp ); + FFTBuffer[k+step2] = complex_sub( FFTBuffer[k], temp ); FFTBuffer[k] = complex_add( FFTBuffer[k], temp ); } -- cgit v1.2.3