aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-08 16:05:18 -0700
committerChris Robinson <[email protected]>2019-06-08 16:05:18 -0700
commitb6ce793f849c25cb9ddf992e2b647d3babcaf6cb (patch)
tree5241fc5d70d64d26f889f0c5f79c74d9b4f605d0 /Alc/effects
parent1569b79c5d133717c4913cfde7cdbf0e7c64f270 (diff)
Use a span for the complex_fft/hilbert functions
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/fshifter.cpp2
-rw-r--r--Alc/effects/pshifter.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Alc/effects/fshifter.cpp b/Alc/effects/fshifter.cpp
index 496a767d..0bbcc859 100644
--- a/Alc/effects/fshifter.cpp
+++ b/Alc/effects/fshifter.cpp
@@ -171,7 +171,7 @@ void FshifterState::process(const ALsizei samplesToDo, const FloatBufferLine *RE
}
/* Processing signal by Discrete Hilbert Transform (analytical signal). */
- complex_hilbert(mAnalytic, HIL_SIZE);
+ complex_hilbert(mAnalytic);
/* Windowing and add to output accumulator */
for(k = 0;k < HIL_SIZE;k++)
diff --git a/Alc/effects/pshifter.cpp b/Alc/effects/pshifter.cpp
index f1865830..619bde34 100644
--- a/Alc/effects/pshifter.cpp
+++ b/Alc/effects/pshifter.cpp
@@ -230,7 +230,7 @@ void PshifterState::process(const ALsizei samplesToDo, const FloatBufferLine *RE
/* ANALYSIS */
/* Apply FFT to FFTbuffer data */
- complex_fft(mFFTbuffer, STFT_SIZE, -1.0);
+ complex_fft(mFFTbuffer, -1.0);
/* Analyze the obtained data. Since the real FFT is symmetric, only
* STFT_HALF_SIZE+1 samples are needed.
@@ -302,7 +302,7 @@ void PshifterState::process(const ALsizei samplesToDo, const FloatBufferLine *RE
mFFTbuffer[k] = complex_d{};
/* Apply iFFT to buffer data */
- complex_fft(mFFTbuffer, STFT_SIZE, 1.0);
+ complex_fft(mFFTbuffer, 1.0);
/* Windowing and add to output */
for(ALsizei k{0};k < STFT_SIZE;k++)