aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-22 02:13:40 -0700
committerChris Robinson <[email protected]>2018-03-22 02:13:40 -0700
commitd157d66678ed634550ca5991dde9c68178c41768 (patch)
treed0702501e1df60d5b2c6fb2967fc92ad7c82cf10 /Alc/effects
parent4da6364fc25a19aad8f69ae3c593a3884374b16d (diff)
Change a parameter type to float since that's what it's used as
Diffstat (limited to 'Alc/effects')
-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 e7a69dee..137c7d04 100644
--- a/Alc/effects/pshifter.c
+++ b/Alc/effects/pshifter.c
@@ -149,7 +149,7 @@ static inline ALcomplex complex_mult( ALcomplex a, ALcomplex b )
iFFT (inverse). Fills FFTBuffer[0...FFTSize-1] with the Discrete Fourier Transform (DFT)
of the time domain data stored in FFTBuffer[0...FFTSize-1]. FFTBuffer is an array of
complex numbers (ALcomplex), FFTSize MUST BE power of two.*/
-static inline ALvoid FFT(ALcomplex *FFTBuffer, ALsizei FFTSize, ALint Sign)
+static inline ALvoid FFT(ALcomplex *FFTBuffer, ALsizei FFTSize, ALfloat Sign)
{
ALfloat arg;
ALsizei i, j, k, mask, step, step2;
@@ -288,7 +288,7 @@ static ALvoid ALpshifterState_process(ALpshifterState *state, ALsizei SamplesToD
/* ANALYSIS */
/* Apply FFT to FFTbuffer data */
- FFT(state->FFTbuffer, STFT_SIZE, -1);
+ FFT(state->FFTbuffer, STFT_SIZE, -1.0f);
/* Analyze the obtained data. Since the real FFT is symmetric, only
* STFT_half_size+1 samples are needed.
@@ -359,7 +359,7 @@ static ALvoid ALpshifterState_process(ALpshifterState *state, ALsizei SamplesToD
memset(&state->FFTbuffer[STFT_HALF_SIZE+1], 0, (STFT_HALF_SIZE-1)*sizeof(ALcomplex));
/* Apply iFFT to buffer data */
- FFT(state->FFTbuffer, STFT_SIZE, 1);
+ FFT(state->FFTbuffer, STFT_SIZE, 1.0f);
/* Windowing and add to output */
for(k = 0;k < STFT_SIZE;k++)