From 611bd0b2d3b40f306f120de5bb5d7edeccb0d32e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Apr 2012 07:28:36 -0700 Subject: Add a method to calculate gains given a sound point and its half-width, and use it for reverb The half-width ranges from 0 to pi, and essentially specifies the coverage area around the listener. At 0, it's an infinitely small point sound and behaves like a usual panning sound. At pi/2 it covers half the area, and at pi it covers the whole area. --- OpenAL32/Include/alu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32/Include/alu.h') diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 9d1eb81b..ff5601e5 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -298,6 +298,8 @@ static __inline void aluNormalize(ALfloat *inVector) ALvoid aluInitPanning(ALCdevice *Device); ALint aluCart2LUTpos(ALfloat im, ALfloat re); +ALvoid ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat hwidth, ALfloat ingain, ALfloat *gains); + ALvoid CalcSourceParams(struct ALsource *ALSource, const ALCcontext *ALContext); ALvoid CalcNonAttnSourceParams(struct ALsource *ALSource, const ALCcontext *ALContext); -- cgit v1.2.3