aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-05 15:38:05 -0800
committerChris Robinson <[email protected]>2018-12-05 15:38:05 -0800
commite60d0886d070caa2dd82ef8ae1294d8dda77b745 (patch)
tree30be4920a5415a1dc982fd54342f2cb38b7d4909 /Alc/hrtf.cpp
parent10b39d57d53b541bd4e8fd60d166a03de0c9e28c (diff)
Use class methods for BandSplitter and SplitterAllpass filters
Diffstat (limited to 'Alc/hrtf.cpp')
-rw-r--r--Alc/hrtf.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp
index 19919717..9b645b05 100644
--- a/Alc/hrtf.cpp
+++ b/Alc/hrtf.cpp
@@ -309,7 +309,7 @@ void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei N
ALfloat temps[3][HRIR_LENGTH]{};
BandSplitter splitter;
- bandsplit_init(&splitter, 400.0f / (ALfloat)Hrtf->sampleRate);
+ splitter.init(400.0f / (ALfloat)Hrtf->sampleRate);
for(ALsizei c{0};c < AmbiCount;++c)
{
const ALfloat (*fir)[2] = &Hrtf->coeffs[idx[c] * Hrtf->irSize];
@@ -334,10 +334,10 @@ void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei N
else
{
/* Band-split left HRIR into low and high frequency responses. */
- bandsplit_clear(&splitter);
+ splitter.clear();
for(ALsizei i{0};i < Hrtf->irSize;++i)
temps[2][i] = fir[i][0];
- bandsplit_process(&splitter, temps[0], temps[1], temps[2], HRIR_LENGTH);
+ splitter.process(temps[0], temps[1], temps[2], HRIR_LENGTH);
/* Apply left ear response with delay. */
for(ALsizei i{0};i < NumChannels;++i)
@@ -354,10 +354,10 @@ void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei N
}
/* Band-split right HRIR into low and high frequency responses. */
- bandsplit_clear(&splitter);
+ splitter.clear();
for(ALsizei i{0};i < Hrtf->irSize;++i)
temps[2][i] = fir[i][1];
- bandsplit_process(&splitter, temps[0], temps[1], temps[2], HRIR_LENGTH);
+ splitter.process(temps[0], temps[1], temps[2], HRIR_LENGTH);
/* Apply right ear response with delay. */
for(ALsizei i{0};i < NumChannels;++i)