aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/pshifter.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-21 23:10:12 -0700
committerChris Robinson <[email protected]>2018-03-21 23:10:12 -0700
commit7b95753cf760edf7fe5fd4ce13e9f4bc0c08a9d9 (patch)
tree7d8fac29cbe4e227a42aeb8105a98a000ec703e2 /Alc/effects/pshifter.c
parent8f3d4965414e4e0963f1b1414135cb2a650ea289 (diff)
Fix typo (Substraction -> Subtraction) and rename related function
Diffstat (limited to 'Alc/effects/pshifter.c')
-rw-r--r--Alc/effects/pshifter.c6
1 files 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 );
}