aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-28 07:28:36 -0700
committerChris Robinson <[email protected]>2012-04-28 08:21:53 -0700
commit611bd0b2d3b40f306f120de5bb5d7edeccb0d32e (patch)
tree554666ad8d85349a94784c73dd4723918a939da1 /OpenAL32
parent267d38cf2057bb78f5d03c7f923573d1da2c84be (diff)
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.
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h2
1 files changed, 2 insertions, 0 deletions
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);