aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer/defs.h
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2018-12-26 15:35:05 -0800
committerChris Robinson <chris.kcat@gmail.com>2018-12-26 15:35:05 -0800
commit4f253a935a14e49a77516a56e0d4c6d6177a56b6 (patch)
tree088b3171e77f6c7863c9bbe851b4f82f4a58fbe3 /Alc/mixer/defs.h
parentc5be03b51e8fd9bda3a46c345bdc945cfd965c2e (diff)
Handle HRTF coefficients and values by reference where possible
Diffstat (limited to 'Alc/mixer/defs.h')
-rw-r--r--Alc/mixer/defs.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/Alc/mixer/defs.h b/Alc/mixer/defs.h
index 5fa88773..5bdf6e30 100644
--- a/Alc/mixer/defs.h
+++ b/Alc/mixer/defs.h
@@ -10,6 +10,7 @@
struct MixGains;
struct MixHrtfParams;
struct HrtfState;
+struct DirectHrtfState;
/* C resamplers */
const ALfloat *Resample_copy_C(const InterpState *state, const ALfloat *RESTRICT src, ALsizei frac, ALint increment, ALfloat *RESTRICT dst, ALsizei dstlen);
@@ -30,9 +31,8 @@ void MixHrtfBlend_C(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
MixHrtfParams *newparams, HrtfState *hrtfstate,
ALsizei BufferSize);
void MixDirectHrtf_C(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
- const ALfloat *data, ALsizei Offset, const ALsizei IrSize,
- const ALfloat (*RESTRICT Coeffs)[2], ALfloat (*RESTRICT Values)[2],
- ALsizei BufferSize);
+ const ALfloat *data, DirectHrtfState *State, const ALsizei Chan,
+ const ALsizei BufferSize);
void Mix_C(const ALfloat *data, ALsizei OutChans, ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE],
ALfloat *CurrentGains, const ALfloat *TargetGains, ALsizei Counter, ALsizei OutPos,
ALsizei BufferSize);
@@ -51,9 +51,8 @@ void MixHrtfBlend_SSE(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
MixHrtfParams *newparams, HrtfState *hrtfstate,
ALsizei BufferSize);
void MixDirectHrtf_SSE(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
- const ALfloat *data, ALsizei Offset, const ALsizei IrSize,
- const ALfloat (*RESTRICT Coeffs)[2], ALfloat (*RESTRICT Values)[2],
- ALsizei BufferSize);
+ const ALfloat *data, DirectHrtfState *State, const ALsizei Chan,
+ const ALsizei BufferSize);
void Mix_SSE(const ALfloat *data, ALsizei OutChans, ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE],
ALfloat *CurrentGains, const ALfloat *TargetGains, ALsizei Counter, ALsizei OutPos,
ALsizei BufferSize);
@@ -98,9 +97,8 @@ void MixHrtfBlend_Neon(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
MixHrtfParams *newparams, HrtfState *hrtfstate,
ALsizei BufferSize);
void MixDirectHrtf_Neon(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
- const ALfloat *data, ALsizei Offset, const ALsizei IrSize,
- const ALfloat (*RESTRICT Coeffs)[2], ALfloat (*RESTRICT Values)[2],
- ALsizei BufferSize);
+ const ALfloat *data, DirectHrtfState *State, const ALsizei Chan,
+ const ALsizei BufferSize);
void Mix_Neon(const ALfloat *data, ALsizei OutChans, ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE],
ALfloat *CurrentGains, const ALfloat *TargetGains, ALsizei Counter, ALsizei OutPos,
ALsizei BufferSize);