aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-17 23:21:37 -0800
committerChris Robinson <[email protected]>2018-11-17 23:21:37 -0800
commite79d9bdd1a6aa6d6d9852bf5a380a8cd01cbc315 (patch)
treed0c7be1efda1c2c72f035d5b8be5e942d70b8908 /Alc/effects
parentfa3c34268dd7d9bc380ecd19aedb28924d29b295 (diff)
Move the vector and matrix declarations to a separate header
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/autowah.cpp3
-rw-r--r--Alc/effects/compressor.cpp4
-rw-r--r--Alc/effects/equalizer.cpp3
-rw-r--r--Alc/effects/modulator.cpp3
-rw-r--r--Alc/effects/reverb.cpp1
5 files changed, 10 insertions, 4 deletions
diff --git a/Alc/effects/autowah.cpp b/Alc/effects/autowah.cpp
index e2f07b6f..a8e4fe6e 100644
--- a/Alc/effects/autowah.cpp
+++ b/Alc/effects/autowah.cpp
@@ -29,6 +29,7 @@
#include "alError.h"
#include "alu.h"
#include "filters/defs.h"
+#include "vecmat.h"
#define MIN_FREQ 20.0f
#define MAX_FREQ 2500.0f
@@ -131,7 +132,7 @@ static ALvoid ALautowahState_update(ALautowahState *state, const ALCcontext *con
STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer;
STATIC_CAST(ALeffectState,state)->OutChannels = device->FOAOut.NumChannels;
for(i = 0;i < MAX_EFFECT_CHANNELS;i++)
- ComputePanGains(&device->FOAOut, IdentityMatrixf.m[i], slot->Params.Gain,
+ ComputePanGains(&device->FOAOut, aluMatrixf::Identity.m[i], slot->Params.Gain,
state->Chans[i].TargetGains);
}
diff --git a/Alc/effects/compressor.cpp b/Alc/effects/compressor.cpp
index 5603deea..464e98ec 100644
--- a/Alc/effects/compressor.cpp
+++ b/Alc/effects/compressor.cpp
@@ -27,6 +27,7 @@
#include "alu.h"
#include "alAuxEffectSlot.h"
#include "alError.h"
+#include "vecmat.h"
#define AMP_ENVELOPE_MIN 0.5f
@@ -101,7 +102,8 @@ static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCcontex
STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer;
STATIC_CAST(ALeffectState,state)->OutChannels = device->FOAOut.NumChannels;
for(i = 0;i < 4;i++)
- ComputePanGains(&device->FOAOut, IdentityMatrixf.m[i], slot->Params.Gain, state->Gain[i]);
+ ComputePanGains(&device->FOAOut, aluMatrixf::Identity.m[i], slot->Params.Gain,
+ state->Gain[i]);
}
static ALvoid ALcompressorState_process(ALcompressorState *state, ALsizei SamplesToDo, const ALfloat (*RESTRICT SamplesIn)[BUFFERSIZE], ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE], ALsizei NumChannels)
diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp
index 48c6d1e2..e8d50fad 100644
--- a/Alc/effects/equalizer.cpp
+++ b/Alc/effects/equalizer.cpp
@@ -29,6 +29,7 @@
#include "alError.h"
#include "alu.h"
#include "filters/defs.h"
+#include "vecmat.h"
/* The document "Effects Extension Guide.pdf" says that low and high *
@@ -173,7 +174,7 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCcontext
STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer;
STATIC_CAST(ALeffectState,state)->OutChannels = device->FOAOut.NumChannels;
for(i = 0;i < MAX_EFFECT_CHANNELS;i++)
- ComputePanGains(&device->FOAOut, IdentityMatrixf.m[i], slot->Params.Gain,
+ ComputePanGains(&device->FOAOut, aluMatrixf::Identity.m[i], slot->Params.Gain,
state->Chans[i].TargetGains);
}
diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp
index 7e8f8ce4..9790af79 100644
--- a/Alc/effects/modulator.cpp
+++ b/Alc/effects/modulator.cpp
@@ -29,6 +29,7 @@
#include "alError.h"
#include "alu.h"
#include "filters/defs.h"
+#include "vecmat.h"
#define MAX_UPDATE_SAMPLES 128
@@ -159,7 +160,7 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCcontext
STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer;
STATIC_CAST(ALeffectState,state)->OutChannels = device->FOAOut.NumChannels;
for(i = 0;i < MAX_EFFECT_CHANNELS;i++)
- ComputePanGains(&device->FOAOut, IdentityMatrixf.m[i], slot->Params.Gain,
+ ComputePanGains(&device->FOAOut, aluMatrixf::Identity.m[i], slot->Params.Gain,
state->Chans[i].TargetGains);
}
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp
index fe9cc9f7..ebb9b7da 100644
--- a/Alc/effects/reverb.cpp
+++ b/Alc/effects/reverb.cpp
@@ -31,6 +31,7 @@
#include "alListener.h"
#include "alError.h"
#include "filters/defs.h"
+#include "vecmat.h"
/* This is a user config option for modifying the overall output of the reverb
* effect.